/* SKTMS Elegant Clean White Theme - Professional Design */

:root {
    /* Elegant Clean White Palette - No Gradients */
    --sidebar-primary-dark: #ffffff;
    --sidebar-primary: #ffffff;
    --sidebar-primary-light: #f9fafb;
    --primary-dark-gray: #111827;
    --primary-light-gray: #374151;
    --primary-dark: #000000;
    --dark-gray: #000000;
    --medium-dark-gray: #4b5563;
    --light-gray: #ffffff;
    --medium-gray: #e5e7eb;
    --white: #ffffff;
    --text-dark: #111827;
    --text-muted: #6b7280;
    /* Navigation Colors - Clean White */
    --nav-bg: #ffffff;
    --nav-text: #111827;
    --nav-hover: #f3f4f6;
    --nav-border: #e5e7eb;
    --border-color: #e5e7eb;
    --sidebar-hover: #f9fafb;
    /* Sidebar Logo Colors - Light Green Theme */
    --sidebar-logo-bg: #90EE90;
    --sidebar-logo-border: #ffffff;
    --sidebar-logo-icon: #ffffff;
    --sidebar-logo-shadow: rgba(144, 238, 144, 0.3);
}

/* Keep shared surfaces neutral without flattening semantic background utilities. */
.page-header,
.dashboard-header,
.card-header,
.modal-header,
.table thead,
.table thead th,
.table-light,
.table-light th,
.thead-light,
.thead-light th,
.panel-heading,
.panel-header {
    background-color: #ffffff;
    background-image: none;
}

.page-title,
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.modal-title {
    color: #111827;
    text-shadow: none !important;
}

/* Preserve neutral surfaces when pages provide inline decoration. */
.page-header[style],
.card-header[style],
.modal-header[style] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
}

/* Body and Background - Clean White */
body {
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111827;
    min-height: 100vh;
}

/* Sidebar Styles - Clean White */
.sidebar {
    background: #ffffff;
}

.sidebar .sidebar-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* Sidebar Logo - Light Green with White Border */
.sidebar-logo {
    width: 42px;
    height: 42px;
    background: var(--sidebar-logo-bg);
    border: 3px solid var(--sidebar-logo-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--sidebar-logo-shadow);
    transition: all 0.3s ease;
}

.sidebar-logo i {
    font-size: 1.25rem;
    color: var(--sidebar-logo-icon);
}

.sidebar-brand:hover .sidebar-logo {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(144, 238, 144, 0.5);
}

.sidebar .sidebar-brand {
    color: #111827 !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar .nav-sidebar .nav-link {
    color: #374151 !important;
    border-radius: 8px;
    margin: 4px 16px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar .nav-sidebar .nav-link:hover,
.sidebar .nav-sidebar .nav-link.active {
    background: #f3f4f6;
    color: #111827 !important;
}

.sidebar .nav-sidebar .nav-link i {
    color: #6b7280;
}

.sidebar .nav-sidebar .nav-link:hover i,
.sidebar .nav-sidebar .nav-link.active i {
    color: #111827;
}

/* Main Content Area - Clean White */
.main-content {
    background: #ffffff;
    min-height: 100vh;
}

.content-wrapper {
    background: #ffffff;
    padding: 24px;
}

/* Headers and Page Titles - Clean */
.page-header {
    background: #ffffff;
    color: #111827;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #111827;
}

.breadcrumb-item.active {
    color: #111827;
}

/* Cards - Clean White */
.card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: #ffffff !important;
    color: #111827 !important;
    border: none;
    border-radius: 8px 8px 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h5,
.card-header h4,
.card-header h6,
.card-header .h5,
.card-header .h4,
.card-header .h6 {
    color: #111827 !important;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Tables - Clean White */
.table {
    background: #ffffff !important;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    color: #111827 !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 1rem;
}

.table thead.table-light,
.table thead.table-light th,
.thead-light,
.thead-light th {
    background: #ffffff !important;
    color: #111827 !important;
}

.table tbody tr {
    transition: all 0.15s ease;
}

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

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

/* Buttons - Clean Elegant White */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: #ffffff !important;
    color: #111827 !important;
}

.btn:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db;
}

/* Button icons */
.btn i,
.btn .fas,
.btn .far {
    margin-right: 0.5rem;
    color: inherit !important;
}

.btn-primary {
    background: #ffffff !important;
    border: 1px solid #111827 !important;
    color: #111827 !important;
}

.btn-primary:hover {
    background: #111827 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    background: #ffffff !important;
    border: 1px solid #111827 !important;
    color: #111827 !important;
}

.btn-outline-primary:hover {
    background: #111827 !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: #ffffff !important;
    border: 1px solid #6b7280 !important;
    color: #6b7280 !important;
}

.btn-secondary:hover {
    background: #6b7280 !important;
    color: #ffffff !important;
}

.btn-success {
    background: #ffffff !important;
    border: 1px solid #059669 !important;
    color: #059669 !important;
}

.btn-success:hover {
    background: #059669 !important;
    color: #ffffff !important;
}

.btn-warning {
    background: #ffffff !important;
    border: 1px solid #f59e0b !important;
    color: #92400e !important;
}

.btn-warning:hover {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.btn-danger {
    background: #ffffff !important;
    border: 1px solid #dc2626 !important;
    color: #dc2626 !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.btn-info {
    background: #ffffff !important;
    border: 1px solid #0891b2 !important;
    color: #0891b2 !important;
}

.btn-info:hover {
    background: #0891b2 !important;
    color: #ffffff !important;
}

.btn-light {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}

.btn-light:hover {
    background: #f9fafb !important;
}

.btn-outline-light {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
}

.btn-outline-light:hover {
    background: #f9fafb !important;
}

.btn-outline-secondary {
    background: #ffffff !important;
    border: 1px solid #6b7280 !important;
    color: #6b7280 !important;
}

.btn-outline-secondary:hover {
    background: #6b7280 !important;
    color: #ffffff !important;
}

.btn-outline-success {
    background: #ffffff !important;
    border: 1px solid #059669 !important;
    color: #059669 !important;
}

.btn-outline-success:hover {
    background: #059669 !important;
    color: #ffffff !important;
}

.btn-outline-danger {
    background: #ffffff !important;
    border: 1px solid #dc2626 !important;
    color: #dc2626 !important;
}

.btn-outline-danger:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.btn-outline-warning {
    background: #ffffff !important;
    border: 1px solid #f59e0b !important;
    color: #92400e !important;
}

.btn-outline-warning:hover {
    background: #f59e0b !important;
    color: #ffffff !important;
}

.btn-outline-info {
    background: #ffffff !important;
    border: 1px solid #0891b2 !important;
    color: #0891b2 !important;
}

.btn-outline-info:hover {
    background: #0891b2 !important;
    color: #ffffff !important;
}

/* Forms - Clean */
.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #111827;
}

.form-control:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
    outline: none;
}

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

.form-select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    background: #ffffff;
    color: #111827;
}

.form-select:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
    outline: none;
}

/* Badges - Clean */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge-primary { background: #111827; color: #ffffff; }
.badge-secondary { background: #6b7280; color: #ffffff; }
.badge-success { background: #059669; color: #ffffff; }
.badge-warning { background: #f59e0b; color: #ffffff; }
.badge-danger { background: #dc2626; color: #ffffff; }
.badge-info { background: #0891b2; color: #ffffff; }
.badge-light { background: #f3f4f6; color: #374151; }
.badge-dark { background: #111827; color: #ffffff; }

/* Alerts - Clean */
.alert {
    border: none;
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.alert-primary {
    background: #f3f4f6;
    color: #111827;
    border-left: 4px solid #111827;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #059669;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-info {
    background: #ecfeff;
    color: #155e75;
    border-left: 4px solid #0891b2;
}

/* Modals - Clean White */
.modal-content {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: #ffffff !important;
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.modal-header .modal-title {
    color: #111827 !important;
}

.modal-header .btn-close {
    filter: none;
}

.modal-body {
    background: #ffffff;
    color: #374151;
}

.modal-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
}

/* Navigation - Clean */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand {
    color: #111827 !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    color: #374151 !important;
    transition: all 0.2s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #111827 !important;
    background: #f3f4f6;
}

/* Footer - Clean */
.footer {
    background: #ffffff;
    color: #6b7280;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
}

/* Statistics Cards - Clean White */
.stats-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stats-card::before {
    display: none !important;
    content: none !important;
    background: none !important;
    height: 0 !important;
}

.stats-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: none !important;
}

.stats-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.stats-card h3,
.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #111827 !important;
    background-clip: unset !important;
}

.stats-card .stats-label {
    color: #6b7280 !important;
    font-weight: 500;
    font-size: 0.875rem;
}

.stats-card .stats-icon,
.stats-card i {
    color: #111827 !important;
}

/* Empty States - Clean */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Text Utilities - Clean */
.text-primary { color: #111827 !important; }
.text-success { color: #059669 !important; }
.text-warning { color: #f59e0b !important; }
.text-danger { color: #dc2626 !important; }
.text-info { color: #0891b2 !important; }
.text-muted { color: #6b7280 !important; }

/* Background Utilities - Clean */
.bg-primary { background: #111827 !important; }
.bg-success { background: #059669 !important; }
.bg-warning { background: #f59e0b !important; }
.bg-danger { background: #dc2626 !important; }
.bg-info { background: #0891b2 !important; }
.bg-light { background: #f9fafb !important; }
.bg-dark { background: #111827 !important; }

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 16px;
    }
    
    .page-header {
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Smooth Transitions */
* {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
