/* Modern Dashboard UI seperti referensi */

:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-bg: #1e293b;
    --sidebar-bg: #0f172a;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Background utama */
body {
    background: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
}

/* Layout utama */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    background: #f8fafc;
}

/* Sidebar design seperti referensi */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid #334155;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar .text-center {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid #334155;
}

.sidebar h5 {
    color: white !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar small {
    color: #94a3b8 !important;
    font-size: 0.875rem;
}

.sidebar .fa-hard-hat {
    color: var(--primary-color) !important;
    margin-bottom: 0.75rem;
}

.sidebar .nav-link {
    color: #cbd5e1;
    padding: 0.875rem 1.5rem;
    margin: 0.125rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: white;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
}

/* Cards design modern seperti referensi */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    overflow: hidden;
}

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

.card-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Summary Cards - Design seperti referensi gambar */
.summary-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Color Variants sesuai gambar referensi */
.summary-card.blue {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.summary-card.green {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

.summary-card.orange {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.summary-card.red {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: white;
}

.summary-card.gray {
    background: linear-gradient(135deg, #78909C 0%, #546E7A 100%) !important;
    color: white !important;
}


.summary-card .card-body {
    padding: 24px 20px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 140px;
}

.summary-content {
    flex: 1;
    z-index: 2;
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.95;
    line-height: 1.2;
}

.summary-detail {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0;
    cursor: pointer;
}

.summary-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.summary-card:hover .summary-arrow {
    transform: translateX(3px);
}

/* Stats cards dengan design modern */
.stats-card {
    position: relative;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    z-index: 1;
}

.stats-card .card-body {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
}

.stats-card.primary::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stats-card.success::before {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.stats-card.warning::before {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.stats-card.info::before {
    background: linear-gradient(135deg, var(--info-color), #1d4ed8);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stats-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Header dashboard */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Buttons modern */
.btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: white;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-outline-secondary {
    border: 1px solid #475569;
    color: #475569;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #475569;
    color: white;
}

.btn-secondary {
    background: #475569;
    border: 1px solid #475569;
    color: white;
}

.btn-secondary:hover {
    background: #334155;
    border: 1px solid #334155;
    color: white;
}

.btn-info {
    background: #0dcaf0;
    border: 1px solid #0dcaf0;
    color: white;
    font-weight: 500;
}

.btn-info:hover {
    background: #0aa8cc;
    border: 1px solid #0aa8cc;
    color: white;
}

.btn-success {
    background: #10b981;
    border: 1px solid #10b981;
    color: white;
    font-weight: 500;
}

.btn-success:hover {
    background: #0f9e6f;
    border: 1px solid #0f9e6f;
    color: white;
}

.btn-danger {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: white;
    font-weight: 500;
}

.btn-danger:hover {
    background: #dc2626;
    border: 1px solid #dc2626;
    color: white;
}

/* Method Statement Approval Buttons - Specific styling */
form .btn-success,
.btn.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    font-weight: 500 !important;
}

form .btn-success:hover,
.btn.btn-success:hover {
    background-color: #0f9e6f !important;
    border-color: #0f9e6f !important;
    color: white !important;
}

form .btn-danger,
.btn.btn-danger {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
    font-weight: 500 !important;
}

form .btn-danger:hover,
.btn.btn-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
}

/* Table design modern */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table td {
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.table tbody tr:hover {
    background: #f8fafc;
}

/* Form elements modern */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

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

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar {
        left: -100%;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1060;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Glass Morphism Cards dengan style yang lebih bersih */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 0, 0, 0.12);
}

.card-header {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #1e293b !important;
    font-weight: 600;
}

.card-text {
    color: #475569 !important;
}

/* Text Colors untuk readability yang lebih baik */
h1, h2, h3, h4, h5, h6 {
    color: #1e293b !important;
    font-weight: 600;
}

p, span, div:not(.stats-number):not(.text-white):not(.text-white-50) {
    color: #475569 !important;
}

.text-muted {
    color: #64748b !important;
}

/* Tables dengan design yang lebih bersih */
.table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.table th {
    background: rgba(248, 250, 252, 0.9);
    color: #1e293b !important;
    font-weight: 600;
    border: none;
    padding: 1rem;
    font-size: 0.875rem;
}

.table td {
    background: rgba(255, 255, 255, 0.9);
    color: #475569 !important;
    border: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(248, 250, 252, 0.5);
}

/* Stats Cards dengan warna yang lebih kalem */
.stats-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.9;
    z-index: -1;
}

.stats-card.success::before {
    background: var(--success-gradient);
}

.stats-card.warning::before {
    background: var(--warning-gradient);
}

.stats-card.danger::before {
    background: var(--danger-gradient);
}

.stats-card.info::before {
    background: var(--info-gradient);
}

.stats-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.stats-card .card-body {
    position: relative;
    z-index: 1;
    color: white;
}

.stats-number {
    font-size: 2.25rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Layout utama */
.main-content {
    padding: 2rem;
    margin-left: 280px;
    min-height: 100vh;
    width: calc(100% - 280px);
}

/* Sidebar layout */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-light);
    z-index: 1000;
}

/* Container untuk dashboard */
.container-fluid {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.sidebar .nav-link {
    color: #475569;
    border-radius: 12px;
    margin: 0.25rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    transform: translateX(8px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.sidebar h5 {
    color: #1e293b !important;
    font-weight: 600;
}

.sidebar small {
    color: #64748b !important;
}

.sidebar .fa-hard-hat {
    color: #6366f1 !important;
}

/* Buttons dengan Glass Effect */
.btn {
    border-radius: 15px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    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.5s;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
}

/* Tables dengan Glass Effect */
.table {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
}

.table th {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(255, 255, 255, 0.1);
}

/* Form Elements dengan design yang lebih bersih */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    color: #1e293b;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
    color: #1e293b;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-label {
    color: #374151 !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #64748b;
    border-radius: 12px 0 0 12px;
}

.input-group .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.input-group .form-control:focus {
    border-left: 1px solid #6366f1;
}

.form-check-input {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.form-check-input:checked {
    background: var(--primary-gradient);
    border-color: #6366f1;
}

.form-check-label {
    color: #374151 !important;
}

/* Badges dengan Glass Effect */
.badge {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Alert dengan Glass Effect */
.alert {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem !important;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        z-index: 1050;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }
    
    .sidebar.show {
        left: 0;
        box-shadow: var(--shadow-heavy);
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Mobile menu toggle dengan design yang lebih bersih */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1060;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #6366f1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
    }
    
    .sidebar, .mobile-menu-toggle, .btn:not(.btn-print) {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Improved form styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Better checkbox styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Status badge improvements */
.badge {
    font-size: 0.75rem;
    padding: 6px 10px;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Button improvements */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Print styles */
@media print {
    .sidebar,
    .btn,
    .alert,
    .no-print,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .card-header {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    body {
        font-size: 12px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Alert improvements */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d1f2eb;
    color: #0c5a47;
}

.alert-danger {
    background-color: #fadbd8;
    color: #7b1113;
}

.alert-warning {
    background-color: #fcf3cf;
    color: #7d6608;
}

.alert-info {
    background-color: #d6eaf8;
    color: #1b4f72;
}

/* Tooltip improvements */
.tooltip {
    font-size: 0.875rem;
}

/* Table improvements */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(30, 64, 175, 0.05);
}

/* Progress bars */
.progress {
    height: 6px;
    border-radius: 3px;
}

.progress-bar {
    border-radius: 3px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Success animations */
.success-checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-block;
    stroke-width: 2;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

/* Sidebar active state */
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    border-radius: 0 2px 2px 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2563eb, #e5e7eb);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -23px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.timeline-content h6 {
    color: #1e293b;
    margin-bottom: 4px;
}

/* Alert Styles */
.alert-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Badge improvements */
.badge.fs-6 {
    font-size: 0.875rem !important;
    padding: 8px 12px;
}

/* Print styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 20px !important;
    }
}

/* Additional mobile improvements */
@media (max-width: 767.98px) {
    .content-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .content-header .btn {
        width: 100%;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2563eb, #e5e7eb);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -23px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.timeline-content h6 {
    color: #1e293b;
    margin-bottom: 4px;
}

/* Alert Styles */
.alert-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Badge improvements */
.badge.fs-6 {
    font-size: 0.875rem !important;
    padding: 8px 12px;
}

/* Print styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 20px !important;
    }
}

/* Additional mobile improvements */
@media (max-width: 767.98px) {
    .content-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .content-header .btn {
        width: 100%;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
