/* Dashboard Styles Modernes */
.dashboard-wrapper {
    width: 100%;
    padding: 0;
}

/* Hero Section */
.dashboard-hero {
    background: linear-gradient(145deg, #1a1f3a, #2d3561, #1e2749);
    padding: 60px 40px;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.15), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(56, 189, 248, 0.1), transparent 50%);
    pointer-events: none;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, rgba(108, 99, 255, 0.1), rgba(56, 189, 248, 0.05));
    border-radius: 50%;
    animation: shine 8s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero.btn-primary {
    background: linear-gradient(135deg, #1a1f3a, #2d3561);
    color: white;
}

.btn-hero.btn-primary:hover {
    background: linear-gradient(135deg, #0d1420, #1a1f3a);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 31, 58, 0.4);
}

.btn-hero.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero.btn-secondary:hover {
    background: rgba(26, 31, 58, 0.4);
    transform: translateY(-3px);
}

/* Metrics Grid */
.metrics-grid {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.metric-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a1f3a;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1f3a;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.metric-trend {
    font-size: 0.85rem;
    color: #9ca3af;
}

.metric-trend.positive {
    color: #10b981;
    font-weight: 600;
}

.metric-trend.negative {
    color: #ef4444;
    font-weight: 600;
}

/* Dashboard Content */
.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.content-card.large {
    grid-column: span 1;
}

.content-card.full {
    grid-column: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1f3a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-link {
    color: #1a1f3a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #2d3561;
}

.card-body {
    color: #4b5563;
}

/* List Items */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.list-item:last-child {
    margin-bottom: 0;
}

.item-info {
    flex: 1;
}

.item-date {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1f3a;
    margin-bottom: 3px;
}

.item-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
}

.list-item-simple {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.item-date-small {
    background: #1a1f3a;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    min-width: 50px;
}

.item-info-simple {
    flex: 1;
}

.item-title-small {
    font-weight: 600;
    color: #1a1f3a;
    margin-bottom: 2px;
}

.item-subtitle-small {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-card {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #1a1f3a;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-card:hover {
    background: linear-gradient(135deg, #1a1f3a, #2d3561);
    color: white;
    border-color: #1a1f3a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 31, 58, 0.3);
}

.action-card i {
    font-size: 1.8rem;
}

/* Info Blocks */
.info-block {
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 15px;
}

.info-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1f3a;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1f3a, #2d3561);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 31, 58, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d1420, #1a1f3a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 31, 58, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: #1a1f3a;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    background: #0d1420;
    transform: scale(1.05);
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 1rem;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .content-card.large,
    .content-card.full {
        grid-column: span 1;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 40px 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .metrics-grid,
    .dashboard-content {
        padding: 0 20px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}