/* Styles pour le système d'affiliation OnMyShop */

/* Page de connexion */
.affiliate-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #477cdf 0%, #5694ff 100%);
}

.affiliate-login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../imgs/furniture/banner/bg.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.login-header {
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.brand-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
}

.brand-subtitle {
    opacity: 0.95;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 3;
}

.login-body {
    padding: 3rem 2rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #4f88ed;
    box-shadow: 0 0 0 0.2rem rgba(79, 136, 237, 0.25);
    background: white;
    transform: translateY(-2px);
}

.btn-login {
    background: linear-gradient(135deg, #000000, #000);
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 136, 237, 0.4);
    background: linear-gradient(135deg, #4f88ed, #4f88ed);
}

.affiliate-features {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.back-to-home a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-to-home a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

/* Dashboard */
body {
    background: #f8f9fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.affiliate-navbar {
    background: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.affiliate-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.stats-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #477cdf);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stats-icon.primary { 
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}
.stats-icon.success { 
    background: linear-gradient(135deg, #28a745, #20c997);
}
.stats-icon.warning { 
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}
.stats-icon.info { 
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.table-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.btn-logout {
    background: linear-gradient(135deg, #17a2b8, #477cdf);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 136, 237, 0.3);
    background: linear-gradient(135deg, #4f88ed, #4f88ed);
    color: white;
}

.affiliate-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.affiliate-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.affiliate-header h2 {
    position: relative;
    z-index: 2;
}

.affiliate-header p {
    position: relative;
    z-index: 2;
}

.badge-code {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(30, 60, 114, 0.05);
    transform: scale(1.01);
}

.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Améliorations visuelles */
.affiliate-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.affiliate-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stats-card .card-body {
    padding: 2rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
}

.stats-card h6 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.chart-container h5,
.table-container h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Nouvelles sections de statistiques */
.stat-item {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(248, 249, 250, 0.5);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-breakdown {
    padding: 1rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.status-item:last-child {
    border-bottom: none;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.status-label {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.status-count {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        border-radius: 12px;
    }
    
    .login-header {
        padding: 2rem 1.5rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem;
    }
    
    .brand-logo {
        font-size: 2rem;
    }
    
    .back-to-home {
        top: 1rem;
        left: 1rem;
    }
    
    .affiliate-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .affiliate-header {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .affiliate-header h2 {
        font-size: 2rem;
    }
    
    .chart-container,
    .table-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .stats-card .card-body {
        padding: 1.5rem;
    }
    
    .back-to-home {
        top: 1rem;
        left: 1rem;
    }
}

