/**
 * Karma Memorials - Modern Dashboard Styles
 * 
 * @package KarmaMemorials
 * @subpackage Assets
 * @since 1.0.0
 * 
 * Stili moderni per la dashboard con schede statistiche
 */

/* ==========================================================================
   Modern Dashboard Container
   ========================================================================== */

.karma-memorial-dashboard-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Statistics Cards Grid
   ========================================================================== */

.dashboard-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #007cba;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    border-radius: 16px 16px 0 0;
}

/* Stat Card Icons */
.stat-card-modern.memorials::before {
    background: linear-gradient(90deg, #007cba, #00a0d2);
}

.stat-card-modern.locations::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-card-modern.messages::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.stat-card-modern.ricorrenze::before {
    background: linear-gradient(90deg, #6f42c1, #e83e8c);
}

/* Stat Card Content */
.stat-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-icon.memorials {
    background: linear-gradient(135deg, #007cba, #00a0d2);
}

.stat-icon.locations {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-icon.messages {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-icon.ricorrenze {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trend {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
}

.stat-trend.positive {
    background: #d4edda;
    color: #155724;
}

.stat-trend.negative {
    background: #f8d7da;
    color: #721c24;
}

.stat-trend.neutral {
    background: #e2e3e5;
    color: #383d41;
}

/* ==========================================================================
   Content Cards
   ========================================================================== */

.dashboard-content-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.content-card-modern {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card-modern:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.content-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #007cba, #00a0d2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.content-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.content-card-body {
    padding: 0px 20px 20px 20px;
}

/* ==========================================================================
   Recent Items Lists
   ========================================================================== */

.recent-list-modern {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-item-modern {
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 10px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    margin-bottom: -6px;
}

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

.recent-item-modern:hover {
    background: #1e2533;
    margin: 0 -24px;
    padding: 16px 24px;
    border-radius: 8px;
}



.recent-item-content {
    flex: 1;
    min-width: 0;
}

.recent-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.recent-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-item-title a:hover {
    color: #007cba;
}

.recent-item-meta {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

.recent-item-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.recent-item-status.pending {
    background: #fff3cd;
    color: #856404;
}

.recent-item-status.approved {
    background: #d4edda;
    color: #155724;
}

.recent-item-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.empty-state-modern {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #adb5bd;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 8px 0;
}

.empty-state-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .dashboard-content-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .karma-memorial-dashboard-modern {
        padding: 16px;
    }
    
    .dashboard-stats-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card-modern {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .content-card-header {
        padding: 16px 20px;
    }
    
    .content-card-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stat-card-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */

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

.stat-card-modern {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card-modern:nth-child(1) { animation-delay: 0.1s; }
.stat-card-modern:nth-child(2) { animation-delay: 0.2s; }
.stat-card-modern:nth-child(3) { animation-delay: 0.3s; }
.stat-card-modern:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .stat-card-modern {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .stat-number {
        color: #f7fafc;
    }
    
    .stat-label {
        color: #a0aec0;
    }
    
    .content-card-modern {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .content-card-header {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border-color: #4a5568;
    }
    
    .content-card-title {
        color: #f7fafc;
    }
    
    .recent-item-title {
        color: #f7fafc;
    }
    
    .recent-item-meta {
        color: #a0aec0;
    }
}
