/* ===== NBI PORTAL CONSOLIDATED STYLES ===== */

/* Dark/Light Theme Variables */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee/* ===== CONTENT AREA FIXES ===== */
/* Pages content styling */
.content-area > .container-fluid {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    flex: 1; /* Make content grow to push footer down */
}

/* Bootstrap grid adjustments for better spacing */
.content-area .container-fluid .row .col-12 {
    padding-left: 15px;
    padding-right: 15px;
}adow-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #adb5bd;
    --border-color: #495057;
    --shadow-color: rgba(255,255,255,0.1);
}

/* ===== FLEX LAYOUT SYSTEM ===== */
body,
html {
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-area {
    position: relative;
    z-index: 1;
    flex: 1;
    background: transparent;
    overflow: visible; /* Allow dropdown to overflow */
    margin-left: 220px;
    margin-top: 64px;
    max-width: calc(100vw - 220px);
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
}

.content-area::after {
    content: "";
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 480px;
    height: 480px;
    background: url('/images/NBI.png') no-repeat bottom right;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    height: calc(100vh - 64px); /* Subtract header height */
    width: 220px;
    min-width: 220px;
    position: fixed;
    top: 64px; /* Position below header */
    left: 0;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 30%, #2563eb 100%);
    padding-top: 0;
    z-index: 1020; /* Below header */
    box-shadow: 4px 0 25px rgba(37, 99, 235, 0.3);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    overflow-x: hidden; /* Hide horizontal overflow */
    backface-visibility: hidden;
}

.sidebar nav {
    overflow: visible !important;
    position: relative;
}

.sidebar .sidebar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    padding: 1.5rem 1rem 1rem 1.5rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 6px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 3px 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    backdrop-filter: blur(5px);
    text-decoration: none;
    overflow: hidden;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* Active state for current page */
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    font-weight: 600;
    border-left: 4px solid #60a5fa;
    padding-left: calc(1.5rem - 4px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.sidebar .nav-link.active:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.sidebar .user-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== APPLICATIONS DROPDOWN ===== */
.sidebar .nav-item.dropdown {
    position: relative !important;
}

.applications-dropdown {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-height: 400px;
    overflow-y: auto;
    position: static !important;
    margin: 0 !important;
    transform: none !important;
}

.applications-dropdown .dropdown-item {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-left-color: #60a5fa !important;
}

.app-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.app-details {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-description {
    display: none; /* Hide description in sidebar */
}

.app-card.restricted .app-icon {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.app-card.restricted .app-name {
    color: #6b7280;
}

.app-card.restricted .app-description {
    color: #9ca3af;
}

/* ===== GRADIENT CARDS ===== */
.gradient-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.gradient-card-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    border: none !important;
}

.gradient-card-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    border: none !important;
}

.gradient-card-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
    border: none !important;
}

/* ===== CONTENT AREA FIXES ===== */
/* Pages content styling */
.content-area > .container-fluid {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem; /* Reduced back to normal padding */
    flex: 1; /* Make content grow to push footer down */
}

/* Additional spacing for better visual breathing room - reduced */
.content-area .container-fluid {
    padding-right: 1rem !important; /* Reduced from 2rem */
    margin-right: 0;
}

/* Ensure header doesn't overlap content */
.navbar {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Footer positioning */
.footer {
    margin-top: auto !important;
    flex-shrink: 0;
}

/* ===== CARD HOVER EFFECTS ===== */
.card-hover {
    transition: box-shadow 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.card-hover:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ===== ENHANCED CARD STYLES ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.25rem;
}

/* ===== ENHANCED BUTTON STYLES ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    box-shadow: 0 4px 15px rgba(247, 151, 30, 0.3);
}

/* ===== ENHANCED FORM STYLES ===== */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ===== ENHANCED TABLE STYLES ===== */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* ===== LOADING ANIMATIONS ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== TOAST ENHANCEMENTS ===== */
.toast {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ===== WELCOME HEADER ===== */
.welcome-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    border-radius: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* ===== MODERN BUTTONS ===== */
.btn-modern {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-modern:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* ===== APP ACTION CARDS ===== */
.app-action-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.app-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.2);
}

.app-action-card:hover::before {
    transform: scaleX(1);
}

.app-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    color: white;
    transition: all 0.3s ease;
}

.app-action-card:hover .app-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.app-action-card .card-title {
    color: #1e40af;
    font-size: 1.1rem;
}

.app-action-card .card-text {
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 40px;
}

.app-action-card .badge {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.app-action-card:hover .badge {
    opacity: 1;
    transform: translateY(0);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 1040;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    width: 60px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle::before {
    content: '🌙';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

[data-theme="dark"] .theme-toggle::before {
    content: '☀️';
    transform: translateX(30px);
    background: #fbbf24;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ACCOUNT PAGE ENHANCEMENTS ===== */
.stats-card {
    transition: box-shadow 0.2s ease;
    border: none !important;
}

.stats-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

.stats-icon {
    transition: none;
}

.stats-card:hover .stats-icon {
    transform: none;
}

.employee-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.employee-table .table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.employee-table .table td {
    vertical-align: middle;
    border-color: #f1f3f4;
}

.employee-table .table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
    transform: none !important;
}

/* Override any Bootstrap table hover effects */
.table-hover tbody tr:hover,
.table tbody tr:hover,
.card:hover,
.btn:hover,
.stats-card:hover,
.employee-table tbody tr:hover {
    transform: none !important;
    scale: none !important;
}

/* Exception for theme toggle which needs its transform */
.theme-toggle::before {
    transform: translateX(0px) !important;
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(30px) !important;
}

.profile-avatar img, .profile-avatar div {
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: border-color 0.2s ease;
}

.profile-avatar:hover img, .profile-avatar:hover div {
    border-color: rgba(37, 99, 235, 0.3);
}

.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-weight: 500;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover, .btn-outline-warning:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* DataTable Enhancements */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 25px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.25rem 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important;
    border-radius: 6px !important;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #2563eb !important;
    color: white !important;
    transform: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 12px;
    border: none;
}

/* Force modal to work - override all conflicting CSS */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
}

.modal-dialog {
    z-index: 99999 !important;
}

.modal-content {
    z-index: 99999 !important;
    pointer-events: auto !important;
}

.modal-content * {
    pointer-events: auto !important;
}

/* Ensure modal shows above everything else */
.modal.show {
    display: block !important;
    z-index: 99999 !important;
}

.modal.fade.show {
    z-index: 99999 !important;
}

/* Override any backdrop issues */
.modal-backdrop.show {
    z-index: 99998 !important;
    opacity: 0.5 !important;
}

/* Ensure no content interferes with modal */
body.modal-open {
    overflow: hidden !important;
}

body.modal-open .content-area {
    overflow: visible !important;
}

/* Force all modal elements to be clickable */
.modal * {
    pointer-events: auto !important;
}

.modal-header {
    border-radius: 12px 12px 0 0;
    border: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-radius: 0 0 12px 12px;
    border: none;
    padding: 1.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}

.input-group .btn {
    border-radius: 0 8px 8px 0;
}

/* Header Section */
.bg-gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%) !important;
}

.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.shadow-sm {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .employee-table .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .stats-card h4 {
        font-size: 1.5rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.profile-photo-container {
    position: relative;
    display: inline-block;
}

.profile-photo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-photo-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
}

.profile-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-photo-wrapper:hover .profile-photo-overlay {
    opacity: 1;
}

.profile-photo-overlay i {
    font-size: 1.5rem;
}

/* Form styling enhancements */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
}

/* Tab content spacing */
.tab-content {
    padding-top: 1.5rem;
}

/* Responsive design for profile section */
@media (max-width: 768px) {
    .profile-photo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .profile-photo-placeholder i {
        font-size: 2.5rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Responsive layout handled by layout.css */
    
    .content-container {
        padding: 1rem;
    }
    
    .welcome-header {
        padding: 25px 0;
        margin-bottom: 20px;
    }
    
    .welcome-header h1 {
        font-size: 1.8rem;
    }
    
    .theme-toggle {
        right: 10px;
        top: 10px;
        position: fixed;
    }
}

/* ===== ORIGINAL SITE.CSS STYLES ===== */
html {
  font-size: 12px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .content-area {
        margin-left: 0;
        width: 100vw;
    }
    
    .content-area > .container-fluid,
    .content-area .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-right: 0;
    }
    
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        top: 64px;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content-area {
        margin-left: 0 !important;
        margin-top: 64px;
        max-width: 100% !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        right: 0.5rem;
        bottom: 0.5rem;
    }
}