/* ESTELIA Client Portal - Styles */

:root {
    --primary: #003d7a;
    --secondary: #00a3e0;
    --accent: #ff6b35;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border: #ecf0f1;
}

/* LOGIN CONTAINER */
.estelia-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem;
}

.estelia-login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.estelia-login-box h1 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.estelia-login-box p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* PORTAL WRAPPER */
.estelia-portal-wrapper {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.estelia-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.estelia-portal-header h1 {
    color: var(--primary);
    margin: 0;
}

.estelia-logout-btn {
    padding: 0.6rem 1.2rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.estelia-logout-btn:hover {
    background: #c0392b;
}

/* TABS */
.estelia-portal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.estelia-tab-btn {
    padding: 1rem 1.5rem;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.estelia-tab-btn:hover {
    color: var(--primary);
}

.estelia-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

.estelia-tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.estelia-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* STATS GRID */
.estelia-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.estelia-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid var(--secondary);
}

.estelia-stat-card h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.estelia-stat-value {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
}

/* TABLES */
.estelia-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.estelia-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border);
}

.estelia-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
}

.estelia-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.estelia-table tbody tr:hover {
    background: var(--bg-light);
}

/* BADGES */
.estelia-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.estelia-badge-pending {
    background: #fff3cd;
    color: #856404;
}

.estelia-badge-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.estelia-badge-customs {
    background: #e7d4f5;
    color: #6c3483;
}

.estelia-badge-shipping {
    background: #d5f4e6;
    color: #0b5345;
}

.estelia-badge-delivered {
    background: #d4edda;
    color: #155724;
}

.estelia-badge-paid {
    background: #c3e6cb;
    color: #155724;
}

.estelia-badge-unpaid {
    background: #f8d7da;
    color: #721c24;
}

/* BUTTONS */
.estelia-btn-small {
    padding: 0.4rem 0.8rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.estelia-btn-small:hover {
    background: var(--primary);
    text-decoration: none;
    color: white;
}

/* LISTS */
.estelia-dossiers-list,
.estelia-factures-list,
.estelia-documents-list,
.estelia-suivi-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.estelia-suivi-container {
    padding: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .estelia-portal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .estelia-portal-tabs {
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .estelia-tab-btn {
        white-space: nowrap;
        padding: 0.8rem 1rem;
    }

    .estelia-stats-grid {
        grid-template-columns: 1fr;
    }

    .estelia-table {
        font-size: 0.9rem;
    }

    .estelia-table th,
    .estelia-table td {
        padding: 0.7rem;
    }

    .estelia-login-box {
        padding: 1.5rem;
    }

    .estelia-portal-wrapper {
        padding: 1rem;
    }
}

/* ANIMATIONS */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.estelia-stat-card,
.estelia-table {
    animation: slideIn 0.3s ease-out;
}

/* PRINT STYLES */
@media print {
    .estelia-portal-header,
    .estelia-portal-tabs,
    .estelia-logout-btn {
        display: none;
    }

    .estelia-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
