/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Variables CSS */
:root {
    --primary-color: #374151;
    --secondary-color: #6b7280;
    --accent-color: #9ca3af;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --dark-color: #1f2937;
    --light-color: #ffffff;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
    --sidebar-width: 260px;
    --header-height: 70px;
    --gradient-primary: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    --gradient-secondary: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #047857 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 6px 10px -2px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 12px 20px -3px rgba(0, 0, 0, 0.06), 0 6px 8px -3px rgba(0, 0, 0, 0.02);
}

/* Page de connexion */
.login-page {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="300" cy="800" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
}

.login-header {
    margin-bottom: 30px;
}

.logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: var(--gradient-secondary);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.logo:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--gray-color);
    font-size: 14px;
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group label i {
    margin-right: 8px;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Alertes */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Modern About Page Styles */
.hero-icon {
    position: relative;
    display: inline-block;
}

.icon-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    animation: float 3s ease-in-out infinite;
}

.icon-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.pdf-icon-container-centered {
    position: relative;
    display: inline-block;
}

.pdf-icon-bg-centered {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.pdf-icon-bg-centered:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(231, 76, 60, 0.4);
}

.pdf-icon-bg-centered::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 25px;
    opacity: 0.2;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { opacity: 0.2; transform: scale(1); }
    to { opacity: 0.4; transform: scale(1.05); }
}

.detail-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.detail-header i {
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
    position: relative;
}

.detail-header .fa-building {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.detail-header .fa-shield-alt {
    background: var(--success-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.detail-header .fa-lock {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.detail-header .fa-chart-line {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.3);
}

.detail-header .fa-handshake {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3);
}

.detail-header .fa-graduation-cap {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.detail-content {
    line-height: 1.8;
    color: #555;
}

.detail-content p {
    margin-bottom: 15px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.product-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
    border-left-color: white;
}

.product-item i {
    font-size: 18px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    position: relative;
    padding: 12px 0 12px 30px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.service-list li:hover {
    color: #667eea;
    transform: translateX(5px);
}

/* Enhanced buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-outline-primary:hover {
    color: white;
    border-color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Floating background elements */
.main-content::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced card shadows and effects */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.info-note-centered {
    position: relative;
}

.info-note-centered::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

/* Sidebar Styles - Design unifié basé sur Analyses du jour */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sidebar-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: white;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #e8f4fd;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a8c5e8;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #e8f4fd;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: width 0.3s ease;
    z-index: 1;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: white;
    border-left-color: #4fc3f7;
    background: rgba(255,255,255,0.05);
}

.nav-item.active {
    background: rgba(255,255,255,0.15);
    border-left-color: #4fc3f7;
    color: white;
    font-weight: 600;
}

.nav-item.active::before {
    width: 100%;
    background: rgba(79, 195, 247, 0.2);
}

.nav-item-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-item-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item-text {
    font-size: 0.95rem;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
}

/* Legacy support for old class names */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: #e8f4fd;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: width 0.3s ease;
    z-index: 1;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: white;
    border-left-color: #4fc3f7;
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    background: rgba(255,255,255,0.15);
    border-left-color: #4fc3f7;
    color: white;
    font-weight: 600;
}

.nav-link.active::before {
    width: 100%;
    background: rgba(79, 195, 247, 0.2);
}

.nav-link i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.nav-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a8c5e8;
    margin-bottom: 0.5rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: white;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    background-color: #f8f9fa;
    transition: margin-left 0.3s ease;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dashboard-header {
    background: white;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.header-left h1 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 3px;
}

.header-left p {
    color: var(--gray-color);
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
}

.user-info i {
    margin-left: 10px;
    font-size: 24px;
    color: var(--secondary-color);
}

/* Market Tabs */
.market-tabs {
    background-color: white;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    color: var(--gray-color);
    font-weight: 400;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

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

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

/* Market Content */
.market-content {
    padding: 20px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Market Cards */
.market-card {
    background: white;
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.market-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.2);
}

.market-card:hover::before {
    transform: scaleX(1);
}

.market-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.market-card:hover::after {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pair-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.price-info {
    text-align: right;
}

.current-price {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.price-change {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-change.up {
    color: var(--success-color);
    background-color: rgba(39, 174, 96, 0.1);
}

.price-change.down {
    color: var(--danger-color);
    background-color: rgba(231, 76, 60, 0.1);
}

/* Chart Container */
.chart-container {
    margin: 15px 0;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.mini-chart {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Analysis Data */
.analysis-data {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.data-row:last-child {
    margin-bottom: 0;
}

.label {
    font-size: 13px;
    color: var(--gray-color);
    font-weight: 500;
}

.value {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.movement {
    display: flex;
    align-items: center;
    gap: 5px;
}

.movement.up {
    color: var(--success-color);
}

.movement.down {
    color: var(--danger-color);
}

.time {
    color: var(--gray-color);
    font-weight: 400;
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-color);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    margin: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.coming-soon i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    z-index: 2;
}

.coming-soon h3 {
    font-size: 28px;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.coming-soon::after {
    content: '🚀';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.3;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Documents */
.documents-container {
    padding: 30px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-color);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.documents-header h2 {
    color: var(--primary-color);
    font-size: 24px;
}

.documents-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    color: var(--gray-color);
    font-size: 14px;
}

.stat i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-3px);
}

.document-icon {
    text-align: center;
    margin-bottom: 15px;
}

.document-icon i {
    font-size: 32px;
}

.text-red { color: #e74c3c; }
.text-blue { color: #3498db; }
.text-green { color: #27ae60; }
.text-purple { color: #9b59b6; }
.text-gray { color: #95a5a6; }

.document-info {
    flex: 1;
    margin-bottom: 15px;
}

.document-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    word-break: break-word;
}

.document-description {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-color);
}

.document-meta span {
    display: flex;
    align-items: center;
}

.document-meta i {
    margin-right: 5px;
}

.document-actions {
    text-align: center;
}

/* Administration */
.admin-container {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.admin-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    gap: 15px;
}

.admin-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.upload-section,
.register-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upload-section h2,
.register-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upload-form,
.register-form {
    max-width: 600px;
}

.recent-documents,
.clients-list {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.documents-table,
.clients-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--primary-color);
}

tr:hover {
    background-color: #f8f9fa;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status.inactive {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.text-muted {
    color: var(--gray-color);
}

.link {
    color: var(--secondary-color);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
}

.login-footer p {
    margin-bottom: 10px;
}

/* Menu toggle button for mobile - Legacy support */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .vault-dashboard {
        padding: 20px 15px;
    }
    
    .vault-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .plans-table-container {
        overflow-x: auto;
    }
    
    .plans-table {
        min-width: 800px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .dashboard-header {
        padding: 15px 20px;
        margin-left: 0;
    }
    
    .welcome-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .hero-illustration {
        width: 120px;
        height: 80px;
        top: 10px;
        right: 10px;
    }
    
    .vault-dashboard {
        padding: 15px;
        margin: 15px;
    }
    
    .vault-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .vault-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .portfolio-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .portfolio-number-container,
    .account-type-container {
        justify-content: center;
        text-align: center;
    }
    
    .balance-display {
        margin-top: 15px;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .market-content {
        padding: 15px;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .admin-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-content {
        padding: 15px;
    }
    
    .plans-comparison-section {
        padding: 15px;
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .plans-table-container {
        margin: 0 -15px;
        padding: 0 15px;
        overflow-x: auto;
    }
    
    .plans-table {
        min-width: 700px;
        font-size: 14px;
    }
    
    .plan-header h4 {
        font-size: 16px;
    }
    
    .plan-price {
        font-size: 18px;
    }
    
    .feature-header h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .sidebar-toggle {
        top: 15px;
        left: 15px;
    }
    
    .menu-toggle {
        top: 15px;
        left: 15px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .market-tabs {
        padding: 0 20px;
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
        min-width: 120px;
    }
}

/* Bouton de plateforme de trading - Version simplifiée */
.btn-trading-platform {
    background: #28a745 !important;
    color: white !important;
    border: 2px solid #28a745 !important;
    padding: 20px 40px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 18px !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
    margin: 20px 0 !important;
    min-width: 300px !important;
}

.btn-trading-platform:hover {
    background: #218838 !important;
    border-color: #218838 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

.btn-trading-platform:active {
    transform: translateY(0) !important;
}

.btn-trading-platform.btn-lg {
    padding: 22px 45px !important;
    font-size: 20px !important;
    min-width: 350px !important;
}

.trading-platform-access {
    text-align: center !important;
    margin: 30px 0 !important;
    padding: 20px !important;
    background: rgba(40, 167, 69, 0.1) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
}

@media (max-width: 768px) {
    .btn-trading-platform {
        font-size: 16px !important;
        padding: 18px 30px !important;
        min-width: 280px !important;
    }
    
    .btn-trading-platform.btn-lg {
        font-size: 18px !important;
        padding: 20px 35px !important;
        min-width: 300px !important;
    }
    
    .trading-platform-access {
        margin: 20px 0 !important;
        padding: 15px !important;
    }
}