/* ============================================= */
/* EMUNAH - Modern Header & Navigation           */
/* ============================================= */

/* ---- HEADER ---- */
.skin-blue-light .main-header .logo {
    background: linear-gradient(135deg, #5a4fcf 0%, #6b46c1 100%);
    border-bottom: none;
    color: #fff;
    font-weight: 700;
    transition: all 0.3s ease;
}

.skin-blue-light .main-header .logo:hover {
    background: linear-gradient(135deg, #4f44c4 0%, #5f3bb6 100%);
}

.skin-blue-light .main-header .navbar-static-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
}

/* Sidebar toggle */
.skin-blue-light .main-header .sidebar-toggle {
    color: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
    transition: all 0.3s ease;
    font-size: 18px;
}

.skin-blue-light .main-header .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* Navbar links */
.skin-blue-light .main-header .navbar .nav > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.skin-blue-light .main-header .navbar .nav > li > a:hover,
.skin-blue-light .main-header .navbar .nav > li > a:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

/* Header avatar */
.emunah-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-right: 10px;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-menu:hover .emunah-header-avatar {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.emunah-header-chevron {
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.user-menu.open .emunah-header-chevron {
    transform: rotate(180deg);
}

/* User dropdown */
.skin-blue-light .main-header .navbar .nav .user-menu > .dropdown-menu {
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 280px;
    padding: 0;
    margin-top: 5px;
}

.skin-blue-light .main-header .navbar .nav .user-menu > .dropdown-menu > .user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 20px;
    text-align: center;
    height: auto !important;
    position: relative;
    overflow: hidden;
}

.skin-blue-light .main-header .navbar .nav .user-menu > .dropdown-menu > .user-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.skin-blue-light .main-header .navbar .nav .user-menu > .dropdown-menu > .user-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.emunah-dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.skin-blue-light .main-header .navbar .nav .user-menu > .dropdown-menu > .user-header p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px;
    margin: 4px 0 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.skin-blue-light .main-header .navbar .nav .user-menu > .dropdown-menu > .user-footer {
    padding: 15px 20px;
    background: #f8f9fc;
    border-top: 1px solid #edf0f5;
}

.emunah-btn-profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.emunah-btn-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
    color: white !important;
}

.emunah-btn-logout {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
}

.emunah-btn-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(238, 90, 36, 0.4);
    color: white !important;
}

/* ---- SIDEBAR ---- */
.skin-blue-light .main-sidebar {
    background: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.04);
}

.skin-blue-light .sidebar {
    padding-top: 0 !important;
}

/* User Panel in Sidebar */
.emunah-user-panel {
    padding: 22px 18px 18px;
    border-bottom: 1px solid #edf0f5;
}

.emunah-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.emunah-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.2;
}

.emunah-user-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    color: #667eea;
}

/* Section Label */
.emunah-section-label {
    padding: 16px 22px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #98a2b3;
}

/* Menu Items */
.skin-blue-light .sidebar-menu > li {
    margin: 2px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.skin-blue-light .sidebar-menu > li > a {
    padding: 10px 14px !important;
    color: #4a5568 !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    border-left: none !important;
    transition: all 0.25s ease;
    display: flex !important;
    align-items: center;
}

.skin-blue-light .sidebar-menu > li > a > .fa {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-right: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.skin-blue-light .sidebar-menu > li:hover > a {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%) !important;
    color: #5a67d8 !important;
}

.skin-blue-light .sidebar-menu > li:hover > a > .fa {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.skin-blue-light .sidebar-menu > li.active > a {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%) !important;
    color: #5a67d8 !important;
}

.skin-blue-light .sidebar-menu > li.active > a > .fa {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* Treeview arrow */
.skin-blue-light .sidebar-menu > li.treeview > a > .pull-right-container {
    margin-left: auto;
}

.skin-blue-light .sidebar-menu > li.treeview > a > .pull-right-container > .fa {
    width: auto !important;
    height: auto !important;
    background: none !important;
    margin-right: 0;
    font-size: 14px;
    color: #98a2b3 !important;
    box-shadow: none !important;
    transition: transform 0.3s ease, color 0.25s ease;
}

.skin-blue-light .sidebar-menu > li.treeview.menu-open > a > .pull-right-container > .fa {
    transform: rotate(-90deg);
    color: #667eea !important;
}

/* Treeview submenu */
.skin-blue-light .sidebar-menu .treeview-menu {
    background: transparent !important;
    padding: 4px 0 4px 10px;
    margin: 0;
}

.skin-blue-light .sidebar-menu .treeview-menu > li > a {
    padding: 9px 14px 9px 52px !important;
    color: #667085 !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.25s ease;
    margin: 1px 0;
    border-left: none !important;
}

.skin-blue-light .sidebar-menu .treeview-menu > li > a:hover {
    background: rgba(102, 126, 234, 0.06) !important;
    color: #5a67d8 !important;
}

.skin-blue-light .sidebar-menu .treeview-menu > li.active > a {
    background: rgba(102, 126, 234, 0.08) !important;
    color: #5a67d8 !important;
}

/* Sidebar mini collapse adjustments */
.sidebar-mini.sidebar-collapse .main-sidebar .emunah-user-panel,
.sidebar-mini.sidebar-collapse .main-sidebar .emunah-section-label {
    display: none;
}

.sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
    justify-content: center;
}

.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .fa {
    margin-right: 0;
}

/* Smooth scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.4);
}

/* ============================================= */
/* MODULE PAGES - Content, Tables, Cards, etc.   */
/* ============================================= */

/* ---- PAGE HEADER (content-header) ---- */
.content-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 28px 30px !important;
    border-radius: 16px;
    margin: 0 0 25px 0;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.content-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.content-header > h1 {
    color: white !important;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.content-header > h1 > small {
    color: rgba(255, 255, 255, 0.8) !important;
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 400;
}

.content-header > h1 > .fa {
    margin-right: 10px;
    opacity: 0.9;
}

/* ---- CONTENT AREA ---- */
.content-wrapper {
    background: #f0f2f8 !important;
    padding-top: 20px !important;
}

.content {
    padding: 0 20px 20px !important;
}

/* ---- BOX / CARD ---- */
.box {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    margin-bottom: 25px;
    background: #fff;
}

.box-header {
    padding: 20px 25px;
    background: #fff;
    border-bottom: 1px solid #edf0f5 !important;
}

.box-header.with-border {
    border-bottom: 1px solid #edf0f5 !important;
}

.box-header > .box-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.box-body {
    padding: 25px;
}

/* ---- TABLES ---- */
.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef0f5 100%) !important;
    color: #4a5568 !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 18px !important;
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.table > tbody > tr > td {
    padding: 14px 18px !important;
    vertical-align: middle !important;
    color: #4a5568;
    font-size: 14px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fafbfd !important;
}

.table-hover > tbody > tr:hover {
    background-color: rgba(102, 126, 234, 0.05) !important;
}

.table-bordered {
    border: none !important;
}

.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th {
    border: none !important;
    border-bottom: 1px solid #f0f2f8 !important;
}

/* ---- BUTTONS ---- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 20px;
    border: none;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5a72de 0%, #6a3f96 100%) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
    color: white !important;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #0e8a7f 0%, #2dd66e 100%) !important;
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
    transform: translateY(-1px);
    color: white !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, #f05e5e 0%, #d94f1e 100%) !important;
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
    transform: translateY(-1px);
    color: white !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(135deg, #e87ef0 0%, #e04b5f 100%) !important;
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
    transform: translateY(-1px);
    color: white !important;
}

.btn-default {
    background: #f0f2f8 !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none;
}

.btn-default:hover,
.btn-default:focus {
    background: #e2e6ef !important;
    color: #1a1a2e !important;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
}

/* Button groups */
.btn-group > .btn + .btn {
    margin-left: 2px;
}

.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
    border-radius: 0;
}

/* ---- MODALS ---- */
.modal-content {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 18px;
    color: white;
    position: relative;
    z-index: 1;
}

.modal-header .close {
    color: white !important;
    opacity: 0.8;
    text-shadow: none;
    position: relative;
    z-index: 1;
    font-size: 24px;
}

.modal-header .close:hover {
    opacity: 1;
    color: white !important;
}

.modal-body {
    padding: 25px;
}

.modal-body h2 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.modal-footer {
    padding: 15px 25px;
    background: #f8f9fc;
    border-top: 1px solid #edf0f5;
}

/* ---- FORM CONTROLS ---- */
.form-control {
    border-radius: 10px !important;
    border: 2px solid #e2e8f0 !important;
    padding: 10px 16px !important;
    font-size: 14px;
    color: #1a1a2e;
    transition: all 0.3s ease;
    height: auto !important;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
    outline: none;
}

.input-lg {
    font-size: 15px !important;
    padding: 12px 18px !important;
}

.form-group label {
    font-weight: 600;
    color: #344054;
    font-size: 14px;
    margin-bottom: 6px;
}

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px !important;
}

/* ---- LABELS & BADGES ---- */
.label {
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 600;
    font-size: 12px;
}

.label-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important;
}

.label-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.label-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.label-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
}

.label-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.badge {
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 600;
    font-size: 12px;
}

.bg-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* ---- ALERTS ---- */
.alert {
    border-radius: 14px;
    border: none;
    padding: 16px 22px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    color: #0e8a7f;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 36, 0.1) 100%);
    color: #d94f1e;
}

.alert-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    color: #2b7fd4;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    color: #c44356;
}

.alert-dismissible .close {
    top: -2px;
    right: -8px;
    color: inherit;
    opacity: 0.6;
}

.alert-dismissible .close:hover {
    opacity: 1;
}

/* ---- PAGINATION ---- */
.pagination > li > a,
.pagination > li > span {
    border-radius: 10px !important;
    margin: 0 3px;
    border: none;
    color: #667eea;
    font-weight: 600;
    transition: all 0.25s ease;
}

.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.pagination > li > a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* ---- TEXT COLORS ---- */
.text-danger {
    color: #ee5a24 !important;
}
