/* ==========================================
   CONTAINER
========================================== */
.fcm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    background: #f8fafc;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    color: #0f172a;
}

/* ==========================================
   HERO
========================================== */
.fcm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    color: #fff;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.fcm-hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    backdrop-filter: blur(10px);
}

.fcm-hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
}

.fcm-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.fcm-hero p {
    margin: 12px 0 0;
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    line-height: 1.5;
}

/* ==========================================
   GRID
========================================== */
.fcm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* ==========================================
   CARDS
========================================== */
.fcm-container .fcm-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.5); 
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fcm-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.fcm-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

.fcm-card:hover::before {
    opacity: 1;
}

.fcm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0; 
}

.fcm-card-body {
    width: 100%;
}

.fcm-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================
   STATISTICS
========================================== */
.fcm-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1;
    font-size: 24px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.fcm-card:hover .fcm-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.fcm-stat-number {
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fcm-stat-label {
    margin-top: 10px;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   TITLES
========================================== */
.fcm-section-title {
    font-size: 26px;
    font-weight: 800;
    margin: 40px 0 20px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* ==========================================
   FILTERS
========================================== */
.fcm-container .fcm-filter {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.fcm-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

.fcm-filter-group {
    flex: 1;
    min-width: 240px;
}

.fcm-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
}

.fcm-filter-group select,
.fcm-filter select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    appearance: none; 
    cursor: pointer;
}

.fcm-filter-group select:hover,
.fcm-filter select:hover {
    border-color: #cbd5e1;
}

.fcm-filter-group select:focus,
.fcm-filter select:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

.fcm-filter-actions {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

/* ==========================================
   BUTTONS
========================================== */
.fcm-btn-blue {
    height: 52px;
    padding: 0 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fcm-btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.fcm-btn-blue:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px -5px rgba(99, 102, 241, 0.4);
}

/* ==========================================
   TABLES
========================================== */
.fcm-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

.fcm-container .fcm-table {
    width: 100%;
    border-collapse: collapse; 
    background: #ffffff;
    text-align: left;
}

.fcm-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.fcm-table td {
    padding: 20px;
    font-size: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    transition: background 0.2s ease;
}

.fcm-table tr:last-child td {
    border-bottom: none;
}

.fcm-table tr:hover td {
    background: #f1f5f9;
}

/* ==========================================
   BADGES (Modern "Soft" Style)
========================================== */
.fcm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.fcm-success, .fcm-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669; 
}

.fcm-warning, .fcm-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706; 
}

.fcm-danger, .fcm-badge-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #e11d48; 
}

.fcm-info, .fcm-badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
}

/* ==========================================
   PROGRESS
========================================== */
.fcm-progress {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.fcm-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   EMPTY STATE
========================================== */
.fcm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    transition: border-color 0.3s ease;
}

.fcm-empty-state:hover {
    border-color: #6366f1;
}

/* ==========================================
   CHARTS
========================================== */
.fcm-chart-container {
    position: relative;
    min-height: 350px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* ==========================================
   LAYOUT
========================================== */
.fcm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.fcm-col {
    flex: 1;
    min-width: 300px;
}

/* ==========================================
   UTILITIES
========================================== */
.fcm-muted { color: #64748b; }
.fcm-loading { opacity: 0.6; pointer-events: none; filter: grayscale(50%); }
.fcm-shadow-sm { box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05); }
.fcm-shadow-md { box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04); }
.fcm-shadow-lg { box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12); }

/* ==========================================
   RESPONSIVE
========================================== */
@media(max-width: 768px) {
    .fcm-container { padding: 16px; }
    .fcm-hero { padding: 32px 24px; }
    .fcm-hero h1 { font-size: 28px; }
    .fcm-stat-number { font-size: 36px; }
    .fcm-grid { grid-template-columns: 1fr; }
    
    .fcm-table-responsive {
        border-radius: 12px;
    }
    
    .fcm-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .fcm-filter-form { flex-direction: column; align-items: stretch; }
    .fcm-filter-group, .fcm-filter select { width: 100%; }
    .fcm-filter-actions { justify-content: stretch; }
    .fcm-filter-actions .fcm-btn-blue { width: 100%; }
    
    .fcm-row { flex-direction: column; }
}

/* ==========================================
   PRINT
========================================== */
@media print {
    body * { visibility: hidden; }
    #fcm-spreadsheet-report, #fcm-spreadsheet-report * { visibility: visible; }
    .print-hidden { display: none !important; }
}
.fcm-compact-table td,.fcm-compact-table th{padding:4px 8px!important;line-height:1.2!important;font-size:13px}
.fcm-table tr{height:28px!important}
.fcm-grid{gap:10px!important}
.fcm-container .fcm-card{padding:12px!important}
