@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #ff9f1c;
    --dark: #212529;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f0f2f5;
    color: #2b2d42;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
}

/* Sidebar Styling */
.sidebar {
    background: linear-gradient(180deg, #1d1d1d 0%, #2b2d42 100%) !important;
    border-right: none;
    min-height: calc(100vh - 56px);
}

.sidebar a {
    border-radius: 10px;
    margin: 5px 15px;
    padding: 12px 18px !important;
    font-weight: 500;
    color: #cfd2d6;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    padding-left: 25px !important;
    color: white;
}

.sidebar a.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

/* Responsive Table Stack */
@media (max-width: 767.98px) {
    .table-responsive-stack thead {
        display: none;
    }

    .table-responsive-stack tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: 20px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .table-responsive-stack td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 8px 10px !important;
        text-align: right;
    }

    .table-responsive-stack td:before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.65rem;
        color: #8c92a0;
        text-align: left;
        margin-right: 15px;
    }

    .table-responsive-stack td:last-child {
        border-top: 1px solid #f8f9fa;
        margin-top: 10px;
        padding-top: 15px !important;
        justify-content: center;
    }

    .table-responsive-stack td:last-child:before {
        display: none;
    }

    .sidebar {
        min-height: auto;
        border-bottom: 1px solid #495057;
    }
}

/* Button Styling */
.btn {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ef476f, #d00000);
    border: none;
}

/* Custom Utilities */
.x-small {
    font-size: 0.75rem;
}

.h4-md {
    font-size: 1.5rem;
}

/* Tables */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #6c757d;
    padding: 15px;
    border: none;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* Modern Badge System (Soft Badges) */
.badge-soft-success {
    background: #d1e7dd !important;
    color: #0f5132 !important;
}

.badge-soft-danger {
    background: #f8d7da !important;
    color: #842029 !important;
}

.badge-soft-warning {
    background: #fff3cd !important;
    color: #664d03 !important;
}

.badge-soft-primary {
    background: #cfe2ff !important;
    color: #084298 !important;
}

.badge-soft-info {
    background: #cff4fc !important;
    color: #055160 !important;
}

/* Gradient Variations */
.bg-gradient-hero {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

/* Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Progress Enhancements */
.progress-modern {
    height: 12px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stat Icon Wrapper */
.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.5rem;
}

/* Table Hover Effect */
.table-hover tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.03) !important;
}

/* Report Card List (Government Style) */
.report-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.report-item {
    background: white;
    border: 2px solid #555;
    border-radius: 12px;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.report-row {
    display: flex;
    border-bottom: 2px solid #555;
    min-height: 40px;
}

.report-row:last-of-type {
    border-bottom: none;
}

.report-label {
    width: 25%;
    background: #f8f9fa;
    padding: 10px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #444;
    border-right: 2px solid #555;
    display: flex;
    align-items: center;
}

.report-value {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-footer {
    padding: 8px 15px;
    text-align: center;
    background: #f8f9fa;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
}

/* Card Hover Shadow Deep */
.shadow-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Wizard Step Indicator */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
    transform: translateY(-50%);
}

.step-item {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 1;
    transition: all 0.3s ease;
    color: #adb5bd;
}

.step-item.active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
}

.step-item.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Step Panels */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Big Selection Cards */
.selection-card {
    cursor: pointer;
    border: 2px solid #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
    background: white;
}

.selection-card:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.02);
}

.selection-input:checked+.selection-card {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
    box-shadow: 0 8px 20px -5px rgba(67, 97, 238, 0.2);
}

.selection-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.selection-input:checked+.selection-card.border-success {
    border-color: #198754 !important;
    background: #f0fdf4 !important;
}

.selection-input:checked+.selection-card.border-danger {
    border-color: #dc3545 !important;
    background: #fef2f2 !important;
}

.selection-input:checked+.selection-card.border-warning {
    border-color: #ffc107 !important;
    background: #fffbeb !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .main-content {
        padding: 20px !important;
    }
}