/* ============================================
   ÉCRAN CLIENT CAISSE - VISUALISATION COMMANDE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --success: #27ae60;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.client-screen-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */

.client-header {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
}

.logo-synsa {
    color: #3498db;
}

.logo-pos {
    color: #e74c3c;
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.order-number {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.client-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    overflow-y: auto;
}

/* ============================================
   ORDER ITEMS
   ============================================ */

.order-items-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 400px;
}

.empty-order {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-secondary);
    text-align: center;
}

.empty-order i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-order p {
    font-size: 1.5rem;
    font-weight: 500;
}

.order-item-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
    box-shadow: var(--shadow);
}

.order-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-image-container {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.item-image-placeholder {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.3;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.item-options {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.25rem;
}

.item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.item-quantity {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.item-price-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   ORDER SUMMARY
   ============================================ */

.order-summary-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius);
    padding: 2rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total-row {
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--accent);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.total-amount {
    color: var(--success);
    font-size: 2.5rem;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .client-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .header-title h2 {
        font-size: 2rem;
    }

    .order-items-container {
        grid-template-columns: 1fr;
    }

    .summary-row {
        font-size: 1rem;
    }

    .summary-row.total-row {
        font-size: 1.5rem;
    }

    .total-amount {
        font-size: 2rem;
    }
}

