/*
  PALET WARNA TEMA ISLAMI
  ========================
  Background Utama   : #f0f8f0 (Hijau muda sangat lembut)
  Sidebar/Panel Gelap: #1B5E20 (Hijau Tua - Islamic Green)
  Card/Widget        : #FFFFFF (Putih, untuk kontras)
  Aksen & Hover      : #2E7D32 (Hijau Sedang - Forest Green)
  Teks Utama         : #1B5E20 (Hijau Tua)
  Teks di Sidebar    : #E8F5E9 (Hijau Muda - Light Green)
  Aksen Aktif        : #4CAF50 (Hijau Terang - Material Green)
  Aksen Emas         : #FFD700 (Gold - untuk aksen khusus)
  Aksen Emas Gelap   : #D4AF37 (Dark Gold)
*/

/* Body & Background */
body.theme-islami {
    background-color: #f0f8f0 !important;
    /* Fallback */
    background-image: linear-gradient(135deg, #f5fbf5 0%, #e8f5e9 100%) !important;
    color: #1B5E20 !important;
}

/* Sidebar */
body.theme-islami #sidebar {
    background: #1B5E20 !important;
    /* Hijau Tua */
    color: #E8F5E9 !important;
    /* Teks Hijau Muda */
}

body.theme-islami .sidebar-header {
    background: #0d3e11 !important;
    /* Lebih gelap untuk header */
}

body.theme-islami .sidebar-header h3 {
    color: #fff !important;
}

body.theme-islami #sidebar ul li a {
    color: #E8F5E9 !important;
}

body.theme-islami #sidebar ul li a:hover {
    color: #fff !important;
    background: #2E7D32 !important;
    /* Aksen Hover Hijau */
    border-left: 3px solid #4CAF50 !important;
}

body.theme-islami #sidebar ul li.active>a,
body.theme-islami #sidebar a[aria-expanded="true"] {
    color: #fff !important;
    background: #4CAF50 !important;
    /* Aksen Aktif Hijau Terang */
    border-left: 3px solid #FFD700 !important;
    /* Border Emas */
}

body.theme-islami #sidebar ul li a i {
    color: #E8F5E9 !important;
}

body.theme-islami #sidebar ul li.active>a i,
body.theme-islami #sidebar a[aria-expanded="true"] i {
    color: #fff !important;
}

/* Navbar & Header */
body.theme-islami .navbar {
    background-color: #fff !important;
    border-bottom: 2px solid #2E7D32 !important;
}

body.theme-islami #sidebarCollapse {
    background-color: #2E7D32 !important;
    /* Hijau Sedang */
    color: white !important;
    border-color: #2E7D32 !important;
}

body.theme-islami #sidebarCollapse:hover {
    background-color: #1B5E20 !important;
}

/* Cards */
body.theme-islami .card {
    background-color: #FFFFFF !important;
    border-color: #E8F5E9 !important;
    color: #1B5E20 !important;
}

body.theme-islami .card-header {
    background-color: #E8F5E9 !important;
    border-bottom: 2px solid #2E7D32 !important;
    color: #1B5E20 !important;
}

body.theme-islami .card-title {
    color: #2E7D32 !important;
}

/* Buttons */
body.theme-islami .btn-primary,
body.theme-islami button[type="submit"].btn-primary,
body.theme-islami .btn[style*="background-color: #A0522D"],
body.theme-islami .btn[style*="background-color: #3D2B1F"] {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: white !important;
}

body.theme-islami .btn-primary:hover,
body.theme-islami button[type="submit"].btn-primary:hover,
body.theme-islami .btn[style*="background-color: #A0522D"]:hover,
body.theme-islami .btn[style*="background-color: #3D2B1F"]:hover {
    background-color: #1B5E20 !important;
    border-color: #1B5E20 !important;
}

body.theme-islami .btn-success {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

body.theme-islami .btn-success:hover {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
}

/* Links */
body.theme-islami a {
    color: #2E7D32 !important;
}

body.theme-islami a:hover {
    color: #1B5E20 !important;
}

/* Tables */
body.theme-islami .table thead th {
    background-color: #E8F5E9 !important;
    color: #1B5E20 !important;
    border-color: #2E7D32 !important;
}

body.theme-islami .table tbody tr:hover {
    background-color: #f0f8f0 !important;
}

body.theme-islami .table-bordered {
    border-color: #E8F5E9 !important;
}

body.theme-islami .table-bordered td,
body.theme-islami .table-bordered th {
    border-color: #E8F5E9 !important;
}

/* Forms */
body.theme-islami .form-control:focus {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25) !important;
}

body.theme-islami .form-control:focus {
    border-color: #2E7D32 !important;
}

body.theme-islami .custom-select:focus {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25) !important;
}

/* Badges */
body.theme-islami .badge-primary {
    background-color: #2E7D32 !important;
}

body.theme-islami .badge-success {
    background-color: #4CAF50 !important;
}

/* Alerts */
body.theme-islami .alert-success {
    background-color: #E8F5E9 !important;
    border-color: #4CAF50 !important;
    color: #1B5E20 !important;
}

body.theme-islami .alert-info {
    background-color: #E3F2FD !important;
    border-color: #2196F3 !important;
    color: #0d47a1 !important;
}

body.theme-islami .alert-warning {
    background-color: #FFF9C4 !important;
    border-color: #FFD700 !important;
    color: #F57F17 !important;
}

body.theme-islami .alert-danger {
    background-color: #FFEBEE !important;
    border-color: #F44336 !important;
    color: #C62828 !important;
}

/* Modals */
body.theme-islami .modal-header {
    background-color: #E8F5E9 !important;
    border-bottom: 2px solid #2E7D32 !important;
    color: #1B5E20 !important;
}

body.theme-islami .modal-title {
    color: #1B5E20 !important;
}

/* Dropdown Menu */
body.theme-islami .dropdown-menu {
    border-color: #E8F5E9 !important;
}

body.theme-islami .dropdown-item:hover {
    background-color: #E8F5E9 !important;
    color: #1B5E20 !important;
}

body.theme-islami .dropdown-item.active {
    background-color: #2E7D32 !important;
    color: white !important;
}

/* Pagination */
body.theme-islami .page-link {
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 2px !important;
    padding: 0.32rem 0.58rem !important;
    border-radius: 6px !important;
    color: #2E7D32 !important;
    border-color: #E8F5E9 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

body.theme-islami .pagination {
    gap: 3px !important;
    flex-wrap: wrap !important;
}

body.theme-islami .pagination-minimal .page-link {
    min-width: 32px !important;
    min-height: 32px !important;
}

body.theme-islami .pagination-minimal .page-item.disabled .page-link {
    background: #f8faf7 !important;
    color: #6f7b76 !important;
}

body.theme-islami .page-link:hover {
    background-color: #E8F5E9 !important;
    border-color: #2E7D32 !important;
    color: #1B5E20 !important;
}

body.theme-islami .page-item.active .page-link {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: white !important;
}

/* Breadcrumb */
body.theme-islami .breadcrumb-item.active {
    color: #1B5E20 !important;
}

body.theme-islami .breadcrumb-item a {
    color: #2E7D32 !important;
}

/* Progress Bars */
body.theme-islami .progress-bar {
    background-color: #2E7D32 !important;
}

/* Tabs */
body.theme-islami .nav-tabs .nav-link.active {
    background-color: #E8F5E9 !important;
    border-color: #2E7D32 #2E7D32 transparent !important;
    color: #1B5E20 !important;
}

body.theme-islami .nav-tabs .nav-link:hover {
    border-color: #E8F5E9 #E8F5E9 transparent !important;
    color: #2E7D32 !important;
}

/* Select2 */
body.theme-islami .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2E7D32 !important;
    color: white !important;
}

body.theme-islami .select2-container--default .select2-selection--single {
    border-color: #E8F5E9 !important;
}

body.theme-islami .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #2E7D32 !important;
}

/* Custom Scrollbar */
body.theme-islami ::-webkit-scrollbar-thumb {
    background-color: #2E7D32 !important;
}

body.theme-islami ::-webkit-scrollbar-thumb:hover {
    background-color: #1B5E20 !important;
}

/* Gradient backgrounds yang menggunakan warna coklat */
body.theme-islami [style*="background: linear-gradient"][style*="#A0522D"],
body.theme-islami [style*="background: linear-gradient"][style*="#8B4513"],
body.theme-islami [style*="background: linear-gradient"][style*="#3D2B1F"] {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
}

/* Inline styles dengan warna coklat */
body.theme-islami [style*="background-color: #A0522D"],
body.theme-islami [style*="background-color: #3D2B1F"] {
    background-color: #2E7D32 !important;
}

body.theme-islami [style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

body.theme-islami [style*="border-color: #A0522D"] {
    border-color: #2E7D32 !important;
}

/* H1, H2, H3, etc dengan warna coklat */
body.theme-islami h1[style*="color: #3D2B1F"],
body.theme-islami h2[style*="color: #3D2B1F"],
body.theme-islami h3[style*="color: #3D2B1F"],
body.theme-islami h4[style*="color: #3D2B1F"],
body.theme-islami h5[style*="color: #3D2B1F"],
body.theme-islami h6[style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

/* Icon colors */
body.theme-islami [style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

/* Login Page Styles */
body.theme-islami .login-visual,
body.theme-islami .login-left {
    background: linear-gradient(180deg, #1B5E20 0%, #0d3e11 100%) !important;
    color: #E8F5E9 !important;
}

body.theme-islami .login-form-wrap {
    background: #f0f8f0 !important;
}

body.theme-islami .login-box h2,
body.theme-islami .login-form-wrap h2 {
    color: #1B5E20 !important;
}

body.theme-islami .btn-login,
body.theme-islami button[style*="background:#3D2B1F"],
body.theme-islami button[style*="background-color: #3D2B1F"] {
    background: #2E7D32 !important;
    border-color: #2E7D32 !important;
}

body.theme-islami .btn-login:hover,
body.theme-islami button[style*="background:#3D2B1F"]:hover,
body.theme-islami button[style*="background-color: #3D2B1F"]:hover {
    background: #1B5E20 !important;
    border-color: #1B5E20 !important;
}

body.theme-islami .form-control:focus {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25) !important;
}

body.theme-islami .toggle-knob {
    background: #2E7D32 !important;
}

body.theme-islami .toggle-knob .dot {
    background: #4CAF50 !important;
}

body.theme-islami [style*="background:#A0522D"],
body.theme-islami [style*="background-color: #A0522D"] {
    background: #2E7D32 !important;
}

body.theme-islami [style*="background:rgba(245,222,179,0.12)"],
body.theme-islami [style*="background:rgba(245,222,179,0.08)"] {
    background: rgba(232, 245, 233, 0.12) !important;
    color: #E8F5E9 !important;
}

/* Splash Screen Styles - Puzzle Pattern */
body.theme-islami .splash-screen {
    background-color: #1B5E20 !important;
    background-image:
        /* Puzzle pattern - horizontal puzzle pieces */
        repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 40px,
            rgba(27, 94, 32, 0.18) 40px,
            rgba(27, 94, 32, 0.18) 45px,
            transparent 45px,
            transparent 85px),
        /* Puzzle pattern - vertical puzzle pieces */
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 40px,
            rgba(27, 94, 32, 0.15) 40px,
            rgba(27, 94, 32, 0.15) 45px,
            transparent 45px,
            transparent 85px),
        /* Puzzle interlocking pattern - diagonal */
        repeating-linear-gradient(45deg,
            transparent 0px,
            transparent 56px,
            rgba(46, 125, 50, 0.12) 56px,
            rgba(46, 125, 50, 0.12) 60px,
            transparent 60px,
            transparent 116px),
        /* Base gradient with semi-transparent overlay */
        linear-gradient(135deg,
            rgba(27, 94, 32, 0.95) 0%,
            rgba(13, 62, 17, 0.92) 50%,
            rgba(27, 94, 32, 0.95) 100%),
        linear-gradient(135deg, #1B5E20 0%, #0d3e11 100%) !important;
    background-size:
        100% 100%,
        100% 100%,
        200% 200%,
        100% 100%,
        100% 100%;
    color: #E8F5E9 !important;
}

/* Add puzzle overlay pattern with semi-transparent gradient */
body.theme-islami .splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Puzzle piece shapes - circular gradients (Islamic rosettes style) */
        radial-gradient(circle at 25% 25%, rgba(46, 125, 50, 0.25) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(46, 125, 50, 0.25) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(27, 94, 32, 0.2) 0%, transparent 40%),
        /* Additional puzzle pieces */
        radial-gradient(ellipse 60px 40px at 10% 80%, rgba(46, 125, 50, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 60px 40px at 90% 20%, rgba(46, 125, 50, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 60px 40px at 30% 60%, rgba(27, 94, 32, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 60px 40px at 70% 40%, rgba(27, 94, 32, 0.18) 0%, transparent 50%),
        /* Semi-transparent gradient overlay */
        linear-gradient(135deg,
            rgba(46, 125, 50, 0.12) 0%,
            transparent 25%,
            transparent 75%,
            rgba(46, 125, 50, 0.12) 100%);
    pointer-events: none;
    z-index: 0;
}

body.theme-islami .splash-images img {
    border-color: #E8F5E9 !important;
}

body.theme-islami .splash-text {
    color: #E8F5E9 !important;
}

/* E-Digital Splash Screen */
body.theme-islami .splash-container {
    background-color: #1B5E20 !important;
    background-image:
        /* Islamic geometric pattern */
        repeating-linear-gradient(0deg,
            transparent,
            transparent 20px,
            rgba(27, 94, 32, 0.03) 20px,
            rgba(27, 94, 32, 0.03) 40px),
        repeating-linear-gradient(60deg,
            transparent,
            transparent 20px,
            rgba(27, 94, 32, 0.02) 20px,
            rgba(27, 94, 32, 0.02) 40px),
        linear-gradient(135deg, #1B5E20 0%, #0d3e11 100%) !important;
    background-size: 100% 100%, 100% 100%, 100% 100%;
    position: relative;
}

body.theme-islami .splash-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(46, 125, 50, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

body.theme-islami .splash-container>* {
    position: relative;
    z-index: 2;
}

body.theme-islami .splash-title,
body.theme-islami .splash-subtitle {
    color: #E8F5E9 !important;
}

/* Announcement Card Header */
body.theme-islami .card-announcement .card-header {
    background: linear-gradient(45deg, #2E7D32, #4CAF50) !important;
    /* Gradient Hijau */
    color: white !important;
    border-bottom: none !important;
}

body.theme-islami .card-announcement .card-header h6 {
    color: white !important;
}

body.theme-islami .card-announcement .card-header h6[style*="color: #A0522D"] {
    color: white !important;
}

/* Halaman Pengajar - List Pengajar */
body.theme-islami .card-header-theme {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    color: white !important;
}

body.theme-islami .card-header-theme h6 {
    color: white !important;
}

body.theme-islami .table-compact th {
    background: #E8F5E9 !important;
    border-bottom: 2px solid #2E7D32 !important;
    color: #1B5E20 !important;
}

body.theme-islami .btn-theme-primary {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    border: none !important;
    color: white !important;
}

body.theme-islami .btn-theme-primary:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #0d3e11 100%) !important;
    color: white !important;
}

/* Card body dengan border-left coklat */
body.theme-islami .card-body[style*="border-left: 3px solid #A0522D"] {
    border-left: 3px solid #2E7D32 !important;
}

/* Halaman Pengajar - Form Pengajar */
body.theme-islami h1[style*="color: #3D2B1F"],
body.theme-islami h3[style*="color: #3D2B1F"],
body.theme-islami h5[style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

body.theme-islami h6[style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

body.theme-islami button[style*="background-color: #3D2B1F"],
body.theme-islami button[style*="background: #3D2B1F"],
body.theme-islami .btn[style*="background-color: #3D2B1F"] {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: white !important;
}

body.theme-islami button[style*="background-color: #3D2B1F"]:hover,
body.theme-islami button[style*="background: #3D2B1F"]:hover,
body.theme-islami .btn[style*="background-color: #3D2B1F"]:hover {
    background-color: #1B5E20 !important;
    border-color: #1B5E20 !important;
    color: white !important;
}

/* Halaman Absensi - Pendidikan Penilaian */
body.theme-islami .absensi-filter-card label {
    color: #1B5E20 !important;
}

body.theme-islami .absensi-filter-card .form-control:focus,
body.theme-islami .absensi-filter-card select:focus {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15) !important;
}

body.theme-islami .absensi-tabs .nav-link:hover {
    color: #2E7D32 !important;
    background-color: rgba(46, 125, 50, 0.05) !important;
    border-bottom-color: rgba(46, 125, 50, 0.3) !important;
}

body.theme-islami .absensi-tabs .nav-link.active {
    color: #2E7D32 !important;
    border-bottom-color: #2E7D32 !important;
}

body.theme-islami .absensi-card .card-header {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    color: #fff !important;
}

body.theme-islami .absensi-card .card-header h6,
body.theme-islami .absensi-card .card-header .font-weight-bold,
body.theme-islami .absensi-card .card-header * {
    color: #fff !important;
}

body.theme-islami .table-absensi thead th {
    color: #1B5E20 !important;
    border-bottom: 2px solid #2E7D32 !important;
}

body.theme-islami label[style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

body.theme-islami .calendar-month-year {
    color: #1B5E20 !important;
}

body.theme-islami .calendar-day:hover:not(.disabled):not(.weekend) {
    border-color: #2E7D32 !important;
}

body.theme-islami .calendar-day-number {
    color: #1B5E20 !important;
}

body.theme-islami .calendar-day.selected {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2) !important;
}

body.theme-islami .selected-date-form .form-control:focus {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.15rem rgba(46, 125, 50, 0.15) !important;
}

body.theme-islami .selected-date-info {
    color: #1B5E20 !important;
}

body.theme-islami .selected-date-form .form-group label {
    color: #1B5E20 !important;
}

body.theme-islami .spinner {
    border-top: 5px solid #2E7D32 !important;
}

/* Modal header dengan gradient coklat */
body.theme-islami .modal-header[style*="background: linear-gradient"][style*="#A0522D"],
body.theme-islami .modal-header[style*="background: linear-gradient"][style*="#8B4513"] {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
}

/* Override inline styles untuk halaman absensi */
body.theme-islami .absensi-filter-card label[style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

body.theme-islami .absensi-filter-card .form-control:focus[style*="border-color: #A0522D"],
body.theme-islami .absensi-filter-card select:focus[style*="border-color: #A0522D"] {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15) !important;
}

body.theme-islami .absensi-tabs .nav-link:hover[style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

body.theme-islami .absensi-tabs .nav-link.active[style*="color: #A0522D"],
body.theme-islami .absensi-tabs .nav-link.active[style*="border-bottom-color: #A0522D"] {
    color: #2E7D32 !important;
    border-bottom-color: #2E7D32 !important;
}

body.theme-islami .absensi-card .card-header[style*="background: linear-gradient"][style*="#A0522D"] {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
}

body.theme-islami .table-absensi thead th[style*="color: #3D2B1F"],
body.theme-islami .table-absensi thead th[style*="border-bottom: 2px solid #A0522D"] {
    color: #1B5E20 !important;
    border-bottom: 2px solid #2E7D32 !important;
}

body.theme-islami .calendar-day:hover:not(.disabled):not(.weekend)[style*="border-color: #A0522D"] {
    border-color: #2E7D32 !important;
}

body.theme-islami .calendar-day.selected[style*="border-color: #A0522D"] {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2) !important;
}

body.theme-islami .selected-date-form .form-control:focus[style*="border-color: #A0522D"] {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.15rem rgba(46, 125, 50, 0.15) !important;
}

/* ===================================================
   Halaman Setting Pelajaran Kelas - Tema Islami
====================================================== */

/* Override CSS Variables untuk tema islami */
body.theme-islami {
    --theme-primary: #2E7D32;
    --theme-primary-dark: #1B5E20;
    --theme-dark: #1B5E20;
    --theme-light: #E8F5E9;
    --theme-bg: #f0f8f0;
    --theme-card-bg: #ffffff;
}

/* Header section untuk Jadwal Pelajaran Kepondokan */
body.theme-islami .jadwal-pelajaran-kepondokan-header {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    border-left: 4px solid #4CAF50 !important;
}

body.theme-islami .jadwal-pelajaran-kepondokan-title {
    color: #ffffff !important;
}

body.theme-islami .jadwal-pelajaran-kepondokan-title i[style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

/* Jadwal Grid Header */
body.theme-islami .jadwal-grid-header {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    color: #fff !important;
}

/* Jadwal Grid Table */
body.theme-islami .jadwal-grid-table thead th {
    background-color: #E8F5E9 !important;
    color: #1B5E20 !important;
    border-bottom: 2px solid #2E7D32 !important;
}

body.theme-islami .jadwal-grid-table tbody td {
    border-color: #C8E6C9 !important;
}

body.theme-islami .time-cell {
    background-color: #E8F5E9 !important;
    color: #1B5E20 !important;
}

body.theme-islami .jadwal-cell {
    background-color: #f5fbf5 !important;
}

/* Jadwal Item */
body.theme-islami .jadwal-item {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%) !important;
    border-left: 3px solid #2E7D32 !important;
    border-color: #C8E6C9 !important;
}

body.theme-islami .jadwal-item:hover {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%) !important;
    border-left-color: #1B5E20 !important;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.15) !important;
}

body.theme-islami .jadwal-item .pelajaran-name {
    color: #1B5E20 !important;
}

body.theme-islami .jadwal-item .waktu-info {
    color: #2E7D32 !important;
}

/* Time Callout */
body.theme-islami .jadwal-item .waktu-info .time-callout.morning {
    background-color: #C8E6C9 !important;
    color: #1B5E20 !important;
    border: 1px solid #4CAF50 !important;
}

body.theme-islami .jadwal-item .waktu-info .time-callout.afternoon {
    background-color: #E8F5E9 !important;
    color: #1B5E20 !important;
    border: 1px solid #66BB6A !important;
}

body.theme-islami .jadwal-item .waktu-info .time-callout.evening {
    background-color: #A5D6A7 !important;
    color: #1B5E20 !important;
    border: 1px solid #4CAF50 !important;
}

body.theme-islami .jadwal-item .pengajar-name {
    color: #2E7D32 !important;
}

/* Buttons */
body.theme-islami .btn-tambah-jadwal {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: #fff !important;
}

body.theme-islami .btn-tambah-jadwal:hover {
    background-color: #1B5E20 !important;
    border-color: #1B5E20 !important;
}

/* Alert Info untuk setting pelajaran */
body.theme-islami .alert-info[style*="border-left: 4px solid #A0522D"] {
    background-color: #E3F2FD !important;
    border-left: 4px solid #2E7D32 !important;
}

body.theme-islami .alert-info[style*="border-left: 4px solid #A0522D"] i[style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

/* Labels dan Form Controls */
body.theme-islami label[style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

body.theme-islami label i[style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

body.theme-islami .form-control[style*="border: 1px solid"] {
    border-color: #C8E6C9 !important;
}

body.theme-islami .form-control:focus {
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25) !important;
}

body.theme-islami select[style*="border: 1px solid"] {
    border-color: #C8E6C9 !important;
}

/* Card Headers dengan gradient coklat */
body.theme-islami .card-header[style*="background: linear-gradient"][style*="#A0522D"],
body.theme-islami .card-header[style*="background: linear-gradient"][style*="#8B4513"] {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
}

body.theme-islami .card-header h6[style*="color: #3D2B1F"] {
    color: #fff !important;
}

/* Modal untuk Edit Jadwal */
body.theme-islami .modal-header[style*="background: linear-gradient"][style*="#A0522D"] {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    color: #fff !important;
}

body.theme-islami .modal-header[style*="background: linear-gradient"][style*="#A0522D"] .modal-title {
    color: #fff !important;
}

body.theme-islami .modal-header[style*="background: linear-gradient"][style*="#A0522D"] .close {
    color: #fff !important;
    opacity: 0.9 !important;
}

body.theme-islami button[style*="background: linear-gradient"][style*="#A0522D"],
body.theme-islami button[style*="background: linear-gradient"][style*="#8B4513"] {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    border-color: #1B5E20 !important;
    color: #fff !important;
}

body.theme-islami button[style*="background: linear-gradient"][style*="#A0522D"]:hover,
body.theme-islami button[style*="background: linear-gradient"][style*="#8B4513"]:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #0d3e11 100%) !important;
    border-color: #0d3e11 !important;
}

/* Custom Alert Modal */
body.theme-islami .custom-alert-modal .modal-header[style*="background: linear-gradient"][style*="#A0522D"] {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
}

body.theme-islami .custom-alert-modal .btn-primary[style*="background: linear-gradient"][style*="#A0522D"] {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    border-color: #1B5E20 !important;
}

body.theme-islami .custom-alert-modal .btn-primary[style*="background: linear-gradient"][style*="#A0522D"]:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #0d3e11 100%) !important;
    border-color: #0d3e11 !important;
}

/* Tab Navigation */
body.theme-islami .nav-tabs .nav-link[style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

body.theme-islami .nav-tabs .nav-link.active[style*="border-bottom: 2px solid #A0522D"] {
    border-bottom-color: #2E7D32 !important;
    color: #2E7D32 !important;
}

/* Filter Section */
body.theme-islami .filter-section,
body.theme-islami .row[style*="background"] {
    background: transparent !important;
}

/* Empty Cell */
body.theme-islami .jadwal-cell.empty-cell {
    color: #81C784 !important;
}

/* Select2 untuk tema islami */
body.theme-islami .select2-container--default .select2-selection--single[style*="border"] {
    border-color: #C8E6C9 !important;
}

body.theme-islami .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #2E7D32 !important;
}

/* Background gradient untuk section header */
body.theme-islami [style*="background: linear-gradient(135deg, #f8f5f0 0%, #e9e4d9 100%)"] {
    background: linear-gradient(135deg, #f0f8f0 0%, #E8F5E9 100%) !important;
}

/* Icon colors */
body.theme-islami i[style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

/* Strong text dalam alert */
body.theme-islami .alert-info strong {
    color: #1B5E20 !important;
}

/* Page Title (H1) */
body.theme-islami h1[style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

body.theme-islami h1 i[style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

/* Button Refresh */
body.theme-islami .btn[style*="background-color: #A0522D"],
body.theme-islami a[style*="background-color: #A0522D"].btn {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: #fff !important;
}

body.theme-islami .btn[style*="background-color: #A0522D"]:hover,
body.theme-islami a[style*="background-color: #A0522D"].btn:hover {
    background-color: #1B5E20 !important;
    border-color: #1B5E20 !important;
}

/* Card dengan shadow coklat */
body.theme-islami .card[style*="box-shadow: 0 2px 12px rgba(61, 43, 31"] {
    box-shadow: 0 2px 12px rgba(27, 94, 32, 0.1) !important;
}

body.theme-islami .card-body[style*="background-color: #fafafa"] {
    background-color: #f5fbf5 !important;
}

/* Button Toggle Kategori Kelas */
body.theme-islami .btn[style*="background: linear-gradient"][style*="#A0522D"].active,
body.theme-islami label.btn[style*="background: linear-gradient"][style*="#A0522D"].active {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    border-color: #1B5E20 !important;
    color: #fff !important;
}

body.theme-islami .btn[style*="border: 2px solid #A0522D"],
body.theme-islami label.btn[style*="border: 2px solid #A0522D"] {
    border: 2px solid #2E7D32 !important;
    color: #2E7D32 !important;
}

body.theme-islami .btn[style*="border: 2px solid #A0522D"]:hover,
body.theme-islami label.btn[style*="border: 2px solid #A0522D"]:hover,
body.theme-islami .btn[style*="border: 2px solid #A0522D"].active,
body.theme-islami label.btn[style*="border: 2px solid #A0522D"].active {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    border-color: #1B5E20 !important;
    color: #fff !important;
}

body.theme-islami .btn i[style*="color: #A0522D"],
body.theme-islami label.btn i[style*="color: #A0522D"] {
    color: inherit !important;
}

/* Jadwal Pelajaran PKBM Section (mirip dengan Kepondokan) */
body.theme-islami #pelajaranPkbmSection>div[style*="background: linear-gradient"][style*="#f8f5f0"] {
    background: linear-gradient(135deg, #f0f8f0 0%, #E8F5E9 100%) !important;
    border-left: 4px solid #2E7D32 !important;
}

body.theme-islami #pelajaranPkbmSection h6[style*="color: #3D2B1F"] {
    color: #1B5E20 !important;
}

body.theme-islami #pelajaranPkbmSection i[style*="color: #A0522D"] {
    color: #2E7D32 !important;
}

/* Status Jadwal "Akan Datang" */
body.theme-islami .jadwal-item.status-akan-datang {
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%) !important;
    border-left-color: #4CAF50 !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

body.theme-islami .jadwal-item.status-akan-datang .pelajaran-name {
    color: #1B5E20 !important;
}

body.theme-islami .jadwal-item.status-akan-datang .waktu-info .time-callout {
    background-color: #A5D6A7 !important;
    color: #1B5E20 !important;
    border-color: #4CAF50 !important;
}

/* ===================================================
   BUTTON TEXT COLOR - PUTIH UNTUK SEMUA BUTTONS
====================================================== */

/* Semua tipe button utama */
body.theme-islami .btn {
    color: #fff !important;
}

body.theme-islami .btn-primary,
body.theme-islami .btn-success,
body.theme-islami .btn-info,
body.theme-islami .btn-warning,
body.theme-islami .btn-danger,
body.theme-islami .btn-secondary,
body.theme-islami .btn-dark {
    color: #fff !important;
}

/* Button Primary */
body.theme-islami .btn-primary {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: #fff !important;
}

body.theme-islami .btn-primary:hover,
body.theme-islami .btn-primary:focus,
body.theme-islami .btn-primary:active {
    background-color: #1B5E20 !important;
    border-color: #1B5E20 !important;
    color: #fff !important;
}

/* Button Success */
body.theme-islami .btn-success {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: #fff !important;
}

body.theme-islami .btn-success:hover,
body.theme-islami .btn-success:focus,
body.theme-islami .btn-success:active {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: #fff !important;
}

/* Button Info */
body.theme-islami .btn-info {
    background-color: #1976D2 !important;
    border-color: #1976D2 !important;
    color: #fff !important;
}

body.theme-islami .btn-info:hover,
body.theme-islami .btn-info:focus,
body.theme-islami .btn-info:active {
    background-color: #1565C0 !important;
    border-color: #1565C0 !important;
    color: #fff !important;
}

/* Button Warning */
body.theme-islami .btn-warning {
    background-color: #FF9800 !important;
    border-color: #FF9800 !important;
    color: #fff !important;
}

body.theme-islami .btn-warning:hover,
body.theme-islami .btn-warning:focus,
body.theme-islami .btn-warning:active {
    background-color: #F57C00 !important;
    border-color: #F57C00 !important;
    color: #fff !important;
}

/* Button Danger */
body.theme-islami .btn-danger {
    background-color: #F44336 !important;
    border-color: #F44336 !important;
    color: #fff !important;
}

body.theme-islami .btn-danger:hover,
body.theme-islami .btn-danger:focus,
body.theme-islami .btn-danger:active {
    background-color: #D32F2F !important;
    border-color: #D32F2F !important;
    color: #fff !important;
}

/* Button Secondary */
body.theme-islami .btn-secondary {
    background-color: #757575 !important;
    border-color: #757575 !important;
    color: #fff !important;
}

body.theme-islami .btn-secondary:hover,
body.theme-islami .btn-secondary:focus,
body.theme-islami .btn-secondary:active {
    background-color: #616161 !important;
    border-color: #616161 !important;
    color: #fff !important;
}

/* Button Dark */
body.theme-islami .btn-dark {
    background-color: #424242 !important;
    border-color: #424242 !important;
    color: #fff !important;
}

body.theme-islami .btn-dark:hover,
body.theme-islami .btn-dark:focus,
body.theme-islami .btn-dark:active {
    background-color: #212121 !important;
    border-color: #212121 !important;
    color: #fff !important;
}

/* Button Light - Ini satu-satunya yang teksnya gelap */
body.theme-islami .btn-light {
    background-color: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #1B5E20 !important;
}

body.theme-islami .btn-light:hover,
body.theme-islami .btn-light:focus,
body.theme-islami .btn-light:active {
    background-color: #e0e0e0 !important;
    border-color: #bdbdbd !important;
    color: #1B5E20 !important;
}

/* Button Outline Variants - Teks putih saat hover/active */
body.theme-islami .btn-outline-primary:hover,
body.theme-islami .btn-outline-primary:focus,
body.theme-islami .btn-outline-primary.active,
body.theme-islami .btn-outline-success:hover,
body.theme-islami .btn-outline-success:focus,
body.theme-islami .btn-outline-success.active,
body.theme-islami .btn-outline-info:hover,
body.theme-islami .btn-outline-info:focus,
body.theme-islami .btn-outline-info.active,
body.theme-islami .btn-outline-warning:hover,
body.theme-islami .btn-outline-warning:focus,
body.theme-islami .btn-outline-warning.active,
body.theme-islami .btn-outline-danger:hover,
body.theme-islami .btn-outline-danger:focus,
body.theme-islami .btn-outline-danger.active,
body.theme-islami .btn-outline-secondary:hover,
body.theme-islami .btn-outline-secondary:focus,
body.theme-islami .btn-outline-secondary.active,
body.theme-islami .btn-outline-dark:hover,
body.theme-islami .btn-outline-dark:focus,
body.theme-islami .btn-outline-dark.active {
    color: #fff !important;
}

/* Button Outline Primary - Normal state */
body.theme-islami .btn-outline-primary {
    color: #2E7D32 !important;
    border-color: #2E7D32 !important;
}

body.theme-islami .btn-outline-primary:hover,
body.theme-islami .btn-outline-primary:focus,
body.theme-islami .btn-outline-primary.active {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: #fff !important;
}

/* Button dengan inline style */
body.theme-islami button[style*="background"],
body.theme-islami .btn[style*="background"],
body.theme-islami a.btn[style*="background"] {
    color: #fff !important;
}

/* Button dalam modal, card header, dll */
body.theme-islami .modal-footer .btn,
body.theme-islami .card-header .btn,
body.theme-islami .card-footer .btn {
    color: #fff !important;
}

/* Kecuali btn-light dan btn-link */
body.theme-islami .modal-footer .btn-light,
body.theme-islami .card-header .btn-light,
body.theme-islami .card-footer .btn-light {
    color: #1B5E20 !important;
}

body.theme-islami .btn-link {
    color: #2E7D32 !important;
}

body.theme-islami .btn-link:hover {
    color: #1B5E20 !important;
}

/* Button sizes */
body.theme-islami .btn-sm,
body.theme-islami .btn-lg {
    color: #fff !important;
}

body.theme-islami .btn-sm.btn-light,
body.theme-islami .btn-lg.btn-light {
    color: #1B5E20 !important;
}

/* Icon di dalam button */
body.theme-islami .btn i,
body.theme-islami .btn span {
    color: inherit !important;
}

/* ===================================================
   FIX: VISIBILITY BUTTONS - OVERRIDE OUTLINE BUTTONS
   Agar tombol terlihat jelas dengan text putih
====================================================== */

/* Ubah semua btn-outline-secondary menjadi tombol solid warna hijau terang/emas agar kontras */
body.theme-islami .btn-outline-secondary {
    background-color: #66BB6A !important;
    /* Hijau cerah */
    border-color: #66BB6A !important;
    color: #fff !important;
}

body.theme-islami .btn-outline-secondary:hover,
body.theme-islami .btn-outline-secondary:focus,
body.theme-islami .btn-outline-secondary:active,
body.theme-islami .btn-outline-secondary.active,
body.theme-islami .show>.btn-outline-secondary.dropdown-toggle {
    background-color: #2E7D32 !important;
    /* Hijau gelap saat hover */
    border-color: #2E7D32 !important;
    color: #fff !important;
}

/* Pastikan ikon di dalam button outline juga putih */
body.theme-islami .btn-outline-secondary i,
body.theme-islami .btn-outline-secondary span {
    color: #fff !important;
}

/* Fix dropdown toggle arrow color if custom */
body.theme-islami .dropdown-toggle::after {
    color: inherit !important;
}

/* Override btn-light agar lebih terlihat jika ada */
body.theme-islami .btn-light {
    background-color: #E8F5E9 !important;
    /* Hijau sangat muda */
    border-color: #C8E6C9 !important;
    color: #1B5E20 !important;
    /* Teks hijau tua */
}

body.theme-islami .btn-light:hover {
    background-color: #C8E6C9 !important;
    color: #0d3e11 !important;
}

/* Pastikan semua tombol memiliki font weight yang cukup agar terbaca */
body.theme-islami .btn {
    font-weight: 500 !important;
}

/* Khusus untuk dropdown menu agar tidak transparan/sulit dibaca */
body.theme-islami .dropdown-menu {
    background-color: #fff !important;
    border: 1px solid #2E7D32 !important;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.2) !important;
}

body.theme-islami .dropdown-item {
    color: #1B5E20 !important;
}

body.theme-islami .dropdown-item:hover {
    background-color: #E8F5E9 !important;
    color: #0d3e11 !important;
}

/* Input groups (filter) visibility */
body.theme-islami .input-group-text {
    background-color: #E8F5E9 !important;
    border-color: #C8E6C9 !important;
    color: #1B5E20 !important;
}

/* Fix untuk tombol filter "Semua Kelas" dll yang mungkin menggunakan btn-outline-secondary */
body.theme-islami .btn-group .btn-outline-secondary {
    background-color: #66BB6A !important;
    color: #fff !important;
}

/* ===================================================
   Tema Koperasi Pesantren - compact, formal, profesional
====================================================== */
body.theme-islami {
    background-color: #f3f7f2 !important;
    background-image: linear-gradient(180deg, #f8faf7 0%, #edf4ee 100%) !important;
    color: #163426 !important;
}

body.theme-islami #sidebar {
    background: #123d2a !important;
    color: #edf7ef !important;
    box-shadow: 3px 0 12px rgba(18, 61, 42, 0.18) !important;
}

body.theme-islami .sidebar-header {
    background: #0b2d1e !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

body.theme-islami #sidebar ul.components {
    padding-top: 12px !important;
}

body.theme-islami #sidebar ul li a {
    color: #edf7ef !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 0.94rem !important;
    border-left-color: transparent !important;
}

body.theme-islami #sidebar ul li a:hover {
    background: #1f7044 !important;
    border-left-color: #d1a84f !important;
}

body.theme-islami #sidebar ul li.active > a,
body.theme-islami #sidebar a[aria-expanded="true"] {
    background: #1f7044 !important;
    border-left-color: #d1a84f !important;
}

body.theme-islami #sidebar ul ul a {
    background: #103522 !important;
}

body.theme-islami #sidebar ul ul ul a {
    background: #0c2a1c !important;
}

body.theme-islami .navbar {
    min-height: 58px;
    margin-bottom: 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #dfe7e2 !important;
    box-shadow: 0 2px 10px rgba(22, 52, 38, 0.06) !important;
}

body.theme-islami .card {
    border: 1px solid #dfe7e2 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(22, 52, 38, 0.06) !important;
}

body.theme-islami .dashboard-koperasi .card,
body.theme-islami .dashboard-koperasi .ops-panel,
body.theme-islami .dashboard-koperasi .ops-item,
body.theme-islami .dashboard-koperasi .kpi-card,
body.theme-islami .dashboard-koperasi .pending-item,
body.theme-islami .dashboard-koperasi .quick-actions a {
    color: #163426 !important;
}

body.theme-islami .dashboard-koperasi .ops-panel-header,
body.theme-islami .dashboard-koperasi .card-header {
    background: transparent !important;
    border-bottom: 1px solid #dfe7e2 !important;
}

body.theme-islami .dashboard-koperasi a {
    color: #163426 !important;
}

/* ===================================================
   FINAL ALIGNMENT - Dashboard compact style across pages
====================================================== */
body.theme-islami {
    --app-ink: #163426;
    --app-forest: #124f2f;
    --app-green: #1f7a45;
    --app-green-dark: #0f3d26;
    --app-green-soft: #e7f2ea;
    --app-gold: #b8872f;
    --app-gold-soft: #fff7df;
    --app-surface: #ffffff;
    --app-muted: #6f7b76;
    --app-line: #dfe7e2;
    --app-bg: #f3f7f2;
}

body.theme-islami .content-body {
    padding-top: 1rem !important;
    padding-right: 1.1rem !important;
    padding-left: 1.1rem !important;
}

body.theme-islami .content-body h1,
body.theme-islami .content-body h2,
body.theme-islami .content-body h3,
body.theme-islami .content-body h4,
body.theme-islami .content-body h5,
body.theme-islami .content-body h6 {
    color: var(--app-ink) !important;
    letter-spacing: 0 !important;
}

body.theme-islami .content-body h1,
body.theme-islami .content-body .h1 {
    font-size: 1.34rem !important;
    font-weight: 800 !important;
}

body.theme-islami .content-body h2,
body.theme-islami .content-body .h2 {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
}

body.theme-islami .card,
body.theme-islami .modal-content,
body.theme-islami .dropdown-menu {
    border: 1px solid var(--app-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(22, 52, 38, 0.06) !important;
}

body.theme-islami .card-header,
body.theme-islami .modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--app-line) !important;
    color: var(--app-ink) !important;
}

body.theme-islami .card-header {
    min-height: 44px !important;
    padding: 0.72rem 0.9rem !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
}

body.theme-islami .card-body {
    padding: 0.92rem !important;
}

body.theme-islami .table {
    color: var(--app-ink) !important;
    font-size: 0.84rem !important;
}

body.theme-islami .table th,
body.theme-islami .table td {
    padding: 0.48rem 0.58rem !important;
    border-top-color: #eef3ef !important;
    vertical-align: middle !important;
}

body.theme-islami .table thead th {
    background: #f5f8f5 !important;
    border-bottom: 1px solid var(--app-line) !important;
    color: var(--app-muted) !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

body.theme-islami .btn-primary,
body.theme-islami .btn-success,
body.theme-islami .btn-outline-primary:hover,
body.theme-islami .btn-outline-success:hover {
    background-color: var(--app-green) !important;
    border-color: var(--app-green) !important;
    color: #fff !important;
}

body.theme-islami .btn-primary:hover,
body.theme-islami .btn-success:hover {
    background-color: var(--app-forest) !important;
    border-color: var(--app-forest) !important;
}

body.theme-islami .btn-warning {
    background-color: var(--app-gold) !important;
    border-color: var(--app-gold) !important;
    color: #fff !important;
}

body.theme-islami .btn-secondary,
body.theme-islami .btn-outline-secondary {
    background-color: #eef4ef !important;
    border-color: #d5e2d9 !important;
    color: var(--app-ink) !important;
}

body.theme-islami .form-control,
body.theme-islami .custom-select,
body.theme-islami .input-group-text,
body.theme-islami .select2-container--bootstrap4 .select2-selection {
    min-height: 36px !important;
    border-color: var(--app-line) !important;
    border-radius: 6px !important;
    color: var(--app-ink) !important;
    font-size: 0.86rem !important;
}

body.theme-islami .nav-tabs {
    border-bottom: 1px solid var(--app-line) !important;
}

body.theme-islami .nav-tabs .nav-link {
    padding: 0.55rem 0.82rem !important;
    background: #f8faf7 !important;
    border: 1px solid var(--app-line) !important;
    color: var(--app-muted) !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
}

body.theme-islami .nav-tabs .nav-link.active,
body.theme-islami .nav-tabs .nav-item.show .nav-link {
    background: #ffffff !important;
    border-color: var(--app-line) var(--app-line) #ffffff !important;
    color: var(--app-forest) !important;
    box-shadow: inset 0 3px 0 var(--app-gold) !important;
}

body.theme-islami .tab-content {
    border-color: var(--app-line) !important;
    border-radius: 0 0 8px 8px !important;
}

/* ===================================================
   FINAL BUTTON CONTRAST GUARD
   Fixes outline/icon buttons that became white on white in the islami theme.
====================================================== */
body.theme-islami .btn,
body.theme-islami a.btn,
body.theme-islami button.btn,
body.theme-islami label.btn {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    border-width: 1px !important;
    border-style: solid !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
}

body.theme-islami .btn.btn-block {
    display: flex !important;
    width: 100% !important;
}

body.theme-islami .btn i,
body.theme-islami .btn .fas,
body.theme-islami .btn .far,
body.theme-islami .btn .fab,
body.theme-islami .btn .fa,
body.theme-islami .btn span {
    color: inherit !important;
}

body.theme-islami .btn i {
    margin-right: 0 !important;
}

body.theme-islami .btn-primary,
body.theme-islami .btn-success,
body.theme-islami .btn[style*="background-color: #3D2B1F"],
body.theme-islami .btn[style*="background-color: #A0522D"] {
    background-color: var(--app-green) !important;
    border-color: var(--app-green) !important;
    color: #fff !important;
}

body.theme-islami .btn-info {
    background-color: #0f8ea8 !important;
    border-color: #0f8ea8 !important;
    color: #fff !important;
}

body.theme-islami .btn-warning {
    background-color: var(--app-gold) !important;
    border-color: var(--app-gold) !important;
    color: #fff !important;
}

body.theme-islami .btn-danger {
    background-color: #c93a3a !important;
    border-color: #c93a3a !important;
    color: #fff !important;
}

body.theme-islami .btn-secondary,
body.theme-islami .btn-light {
    background-color: #eef4ef !important;
    border-color: #cfdcd5 !important;
    color: var(--app-ink) !important;
}

body.theme-islami .btn-light.text-info,
body.theme-islami .btn.text-info {
    color: #07576a !important;
}

body.theme-islami .btn-light.text-warning,
body.theme-islami .btn.text-warning {
    color: #684915 !important;
}

body.theme-islami .btn-light.text-danger,
body.theme-islami .btn.text-danger {
    color: #8a2424 !important;
}

body.theme-islami .btn-outline-primary,
body.theme-islami .btn-outline-success {
    background-color: #edf7ef !important;
    border-color: rgba(31, 122, 69, 0.55) !important;
    color: var(--app-forest) !important;
}

body.theme-islami .btn-outline-info {
    background-color: #e8f8fc !important;
    border-color: #0f8ea8 !important;
    color: #07576a !important;
}

body.theme-islami .btn-outline-warning {
    background-color: #fff7df !important;
    border-color: var(--app-gold) !important;
    color: #684915 !important;
}

body.theme-islami .btn-outline-danger {
    background-color: #fff0f0 !important;
    border-color: #c93a3a !important;
    color: #8a2424 !important;
}

body.theme-islami .btn-outline-secondary,
body.theme-islami .btn-outline-dark,
body.theme-islami .btn-outline-light {
    background-color: #f5f8f5 !important;
    border-color: #cfdcd5 !important;
    color: var(--app-ink) !important;
}

body.theme-islami .btn-primary:hover,
body.theme-islami .btn-primary:focus,
body.theme-islami .btn-success:hover,
body.theme-islami .btn-success:focus,
body.theme-islami .btn-outline-primary:hover,
body.theme-islami .btn-outline-primary:focus,
body.theme-islami .btn-outline-primary.active,
body.theme-islami .btn-outline-success:hover,
body.theme-islami .btn-outline-success:focus,
body.theme-islami .btn-outline-success.active {
    background-color: var(--app-forest) !important;
    border-color: var(--app-forest) !important;
    color: #fff !important;
}

body.theme-islami .btn-info:hover,
body.theme-islami .btn-info:focus,
body.theme-islami .btn-outline-info:hover,
body.theme-islami .btn-outline-info:focus,
body.theme-islami .btn-outline-info.active {
    background-color: #0b7285 !important;
    border-color: #0b7285 !important;
    color: #fff !important;
}

body.theme-islami .btn-warning:hover,
body.theme-islami .btn-warning:focus,
body.theme-islami .btn-outline-warning:hover,
body.theme-islami .btn-outline-warning:focus,
body.theme-islami .btn-outline-warning.active {
    background-color: #94681f !important;
    border-color: #94681f !important;
    color: #fff !important;
}

body.theme-islami .btn-danger:hover,
body.theme-islami .btn-danger:focus,
body.theme-islami .btn-outline-danger:hover,
body.theme-islami .btn-outline-danger:focus,
body.theme-islami .btn-outline-danger.active {
    background-color: #9f2c2c !important;
    border-color: #9f2c2c !important;
    color: #fff !important;
}

body.theme-islami .btn-secondary:hover,
body.theme-islami .btn-secondary:focus,
body.theme-islami .btn-light:hover,
body.theme-islami .btn-light:focus,
body.theme-islami .btn-outline-secondary:hover,
body.theme-islami .btn-outline-secondary:focus,
body.theme-islami .btn-outline-secondary.active,
body.theme-islami .btn-outline-dark:hover,
body.theme-islami .btn-outline-dark:focus,
body.theme-islami .btn-outline-dark.active,
body.theme-islami .btn-outline-light:hover,
body.theme-islami .btn-outline-light:focus,
body.theme-islami .btn-outline-light.active {
    background-color: #dfece3 !important;
    border-color: #b7cbbf !important;
    color: var(--app-green-dark) !important;
}

body.theme-islami .btn.disabled,
body.theme-islami .btn:disabled,
body.theme-islami fieldset:disabled .btn {
    opacity: 0.65 !important;
    color: inherit !important;
}
