/*
 * Skin: WIMS Custom Theme
 * -------------------------
 * โทนสีเดียวกับหน้า Login
 * Primary: #1e3c72, #2a5298 (น้ำเงินเข้ม)
 * Background: #0f0c29, #302b63, #24243e, #1a1a2e (ม่วงเข้ม-น้ำเงินเข้ม)
 */

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.skin-wims .theme-toggle-menu > a {
    padding: 15px 15px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skin-wims .theme-toggle-menu > a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.skin-wims .theme-toggle-menu > a i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.skin-wims .theme-toggle-menu > a:hover i {
    transform: rotate(20deg);
}

/* ============================================
   MAIN HEADER - NAVBAR
   ============================================ */
.skin-wims .main-header .navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.3);
}

.skin-wims .main-header .navbar .nav > li > a {
    color: #ffffff;
}

.skin-wims .main-header .navbar .nav > li > a:hover,
.skin-wims .main-header .navbar .nav > li > a:active,
.skin-wims .main-header .navbar .nav > li > a:focus,
.skin-wims .main-header .navbar .nav .open > a,
.skin-wims .main-header .navbar .nav .open > a:hover,
.skin-wims .main-header .navbar .nav .open > a:focus,
.skin-wims .main-header .navbar .nav > .active > a {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.skin-wims .main-header .navbar .sidebar-toggle {
    color: #ffffff;
}

.skin-wims .main-header .navbar .sidebar-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {
    .skin-wims .main-header .navbar .dropdown-menu li.divider {
        background-color: rgba(255, 255, 255, 0.1);
    }
    .skin-wims .main-header .navbar .dropdown-menu li a {
        color: #fff;
    }
    .skin-wims .main-header .navbar .dropdown-menu li a:hover {
        background: #2a5298;
    }
}

/* ============================================
   LOGO
   ============================================ */
.skin-wims .main-header .logo {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
    color: #ffffff;
    border-bottom: 0 solid transparent;
    font-weight: 600;
}

.skin-wims .main-header .logo:hover {
    background: linear-gradient(135deg, #302b63 0%, #0f0c29 100%);
}

.skin-wims .main-header .logo small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

/* ============================================
   USER HEADER
   ============================================ */
.skin-wims .main-header li.user-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* ============================================
   CONTENT HEADER
   ============================================ */
.skin-wims .content-header {
    background: transparent;
}

.skin-wims .content-header h2 {
    color: #2a5298;
    font-weight: 600;
}

/* ============================================
   SIDEBAR
   ============================================ */
.skin-wims .wrapper,
.skin-wims .main-sidebar,
.skin-wims .left-side {
    background: linear-gradient(180deg, #0f0c29 0%, #1a1a2e 50%, #24243e 100%);
}

.skin-wims .user-panel > .info,
.skin-wims .user-panel > .info > a {
    color: #fff;
}

.skin-wims .sidebar-menu > li.header {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.skin-wims .sidebar-menu > li > a {
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.skin-wims .sidebar-menu > li:hover > a,
.skin-wims .sidebar-menu > li.active > a {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(42, 82, 152, 0.5) 0%, rgba(42, 82, 152, 0.2) 100%);
    border-left-color: #2a5298;
}

.skin-wims .sidebar-menu > li.active > a {
    background: linear-gradient(90deg, rgba(42, 82, 152, 0.7) 0%, rgba(42, 82, 152, 0.3) 100%);
    box-shadow: inset 0 0 10px rgba(42, 82, 152, 0.3);
}

.skin-wims .sidebar-menu > li > .treeview-menu {
    margin: 0 1px;
    background: rgba(0, 0, 0, 0.2);
}

.skin-wims .sidebar a {
    color: rgba(255, 255, 255, 0.8);
}

.skin-wims .sidebar a:hover {
    text-decoration: none;
    color: #ffffff;
}

.skin-wims .treeview-menu > li > a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.skin-wims .treeview-menu > li.active > a,
.skin-wims .treeview-menu > li > a:hover {
    color: #ffffff;
    background: rgba(42, 82, 152, 0.3);
}

/* ============================================
   SIDEBAR FORM
   ============================================ */
.skin-wims .sidebar-form {
    border-radius: 8px;
    border: 1px solid rgba(42, 82, 152, 0.3);
    margin: 10px 10px;
    background: rgba(0, 0, 0, 0.2);
}

.skin-wims .sidebar-form input[type="text"],
.skin-wims .sidebar-form .btn {
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    height: 35px;
    color: #fff;
}

.skin-wims .sidebar-form input[type="text"] {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.skin-wims .sidebar-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.skin-wims .sidebar-form input[type="text"]:focus,
.skin-wims .sidebar-form input[type="text"]:focus + .input-group-btn .btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.skin-wims .sidebar-form .btn {
    color: rgba(255, 255, 255, 0.7);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.skin-wims .content-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #24243e 50%, #0f0c29 100%);
}

.skin-wims .content-header h1,
.skin-wims .content-header h2 {
    color: #ffffff;
}

.skin-wims .content-header h1 small,
.skin-wims .content-header h2 small {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   FOOTER
   ============================================ */
.skin-wims .main-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: rgba(255, 255, 255, 0.9);
    border-top: none;
}

.skin-wims .main-footer a {
    color: #ffffff;
}

.skin-wims .main-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   DROPDOWN MENU
   ============================================ */
.skin-wims .dropdown-menu {
    border: 1px solid rgba(42, 82, 152, 0.2);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.skin-wims .dropdown-menu > li > a:hover,
.skin-wims .dropdown-menu > li > a:focus {
    background: linear-gradient(90deg, rgba(42, 82, 152, 0.1) 0%, transparent 100%);
}

/* ============================================
   SCROLLBAR CUSTOMIZATION
   ============================================ */
.skin-wims .sidebar::-webkit-scrollbar {
    width: 6px;
}

.skin-wims .sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.skin-wims .sidebar::-webkit-scrollbar-thumb {
    background: rgba(42, 82, 152, 0.5);
    border-radius: 3px;
}

.skin-wims .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(42, 82, 152, 0.8);
}

/* ============================================
   NAV TABS CUSTOM - WIMS THEME
   ============================================ */
.skin-wims .nav-tabs-custom {
    background: linear-gradient(135deg, #1a1a2e 0%, #24243e 100%);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(42, 82, 152, 0.3);
    overflow: hidden;
}

.skin-wims .nav-tabs-custom > .nav-tabs {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-bottom: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Fix pull-right tabs to display properly */
.skin-wims .nav-tabs-custom > .nav-tabs.pull-right {
    float: none !important;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.skin-wims .nav-tabs-custom > .nav-tabs.pull-right > li {
    float: none !important;
}

.skin-wims .nav-tabs-custom > .nav-tabs.pull-right > li.header {
    margin-right: auto;
    order: 999;
}

.skin-wims .nav-tabs-custom > .nav-tabs > li {
    border-top: none;
    margin-bottom: 0;
    margin-right: 0;
    float: none;
}

.skin-wims .nav-tabs-custom > .nav-tabs > li > a {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    border: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.skin-wims .nav-tabs-custom > .nav-tabs > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.skin-wims .nav-tabs-custom > .nav-tabs > li.active > a,
.skin-wims .nav-tabs-custom > .nav-tabs > li.active > a:hover,
.skin-wims .nav-tabs-custom > .nav-tabs > li.active > a:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    border-bottom: 3px solid #ffffff;
}

.skin-wims .nav-tabs-custom > .nav-tabs > li.header {
    color: #ffffff;
    font-weight: 600;
    padding: 12px 20px;
    font-size: 16px;
}

.skin-wims .nav-tabs-custom > .tab-content {
    background: transparent;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    clear: both;
    overflow: visible;
}

/* Fix pagination position - ensure it stays within tab content */
.skin-wims .nav-tabs-custom > .tab-content .rolling {
    position: relative;
    z-index: 1;
}

/* Ensure tab-pane content is properly contained */
.skin-wims .tab-pane {
    position: relative;
    clear: both;
}

/* ============================================
   TAP BOX - WIMS THEME
   ============================================ */
.skin-wims .tap-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #24243e 100%);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(42, 82, 152, 0.3);
    overflow: hidden;
}

/* ============================================
   BOX STYLES IN CONTENT - WIMS THEME
   ============================================ */
.skin-wims .box {
    background: linear-gradient(135deg, #24243e 0%, #1a1a2e 100%);
    border: 1px solid rgba(42, 82, 152, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.skin-wims .box-body {
    color: rgba(255, 255, 255, 0.9);
}

.skin-wims .box-header {
    border-bottom: 1px solid rgba(42, 82, 152, 0.3);
}

.skin-wims .box-header .box-tools .btn {
    color: #ffffff;
}

/* ============================================
   TABLE STYLES - WIMS THEME
   ============================================ */
.skin-wims .table {
    color: rgba(255, 255, 255, 0.9);
    border-collapse: separate;
    border-spacing: 0;
}

.skin-wims .table > thead > tr > th,
.skin-wims .table > thead > tr > td {
    background: linear-gradient(180deg, #3a5a8a 0%, #2a4a7a 50%, #1e3c72 100%);
    color: #ffffff;
    border-bottom: 2px solid #4a7ab8;
    border-top: 1px solid #5a8ac8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skin-wims .table > thead > tr > th:first-child {
    border-top-left-radius: 6px;
}

.skin-wims .table > thead > tr > th:last-child {
    border-top-right-radius: 6px;
}

.skin-wims .table > tbody > tr > td {
    border-top: 1px solid rgba(42, 82, 152, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
}

.skin-wims .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(42, 82, 152, 0.1);
}

.skin-wims .table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(26, 26, 46, 0.5);
}

.skin-wims .table-hover > tbody > tr:hover {
    background-color: rgba(42, 82, 152, 0.35) !important;
    transition: background-color 0.2s ease;
}

.skin-wims .table-hover > tbody > tr:hover > td {
    color: #ffffff !important;
    background-color: transparent;
}

/* Fix for editable table rows with white background on hover */
.skin-wims .table > tbody > tr:hover,
.skin-wims .table > tbody > tr.selected,
.skin-wims .table > tbody > tr:focus {
    background-color: rgba(42, 82, 152, 0.35) !important;
}

.skin-wims .table > tbody > tr:hover > td,
.skin-wims .table > tbody > tr.selected > td {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Override any inline or external white background on hover */
.skin-wims tr:hover {
    background-color: rgba(42, 82, 152, 0.35) !important;
}

.skin-wims tr:hover td {
    color: #ffffff !important;
}

.skin-wims .table-bordered {
    border: 1px solid rgba(42, 82, 152, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.skin-wims .table-bordered > thead > tr > th,
.skin-wims .table-bordered > thead > tr > td {
    border: 1px solid rgba(74, 122, 184, 0.4);
}

.skin-wims .table-bordered > tbody > tr > th,
.skin-wims .table-bordered > tbody > tr > td {
    border: 1px solid rgba(42, 82, 152, 0.2);
}

/* ============================================
   FORM CONTROLS IN CONTENT - WIMS THEME
   ============================================ */
.skin-wims .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(42, 82, 152, 0.3);
    color: #ffffff;
    border-radius: 8px;
}

.skin-wims .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.2);
    color: #ffffff;
}

.skin-wims .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* SELECT STYLING - FIX TEXT TRUNCATION */
.skin-wims select.form-control,
.skin-wims select.btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(42, 82, 152, 0.3);
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 150px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.skin-wims select.form-control option,
.skin-wims select.btn option {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

.skin-wims select.form-control:focus,
.skin-wims select.btn:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #2a5298;
}

/* ============================================
   INPUT GROUP & SEARCH BUTTON - WIMS THEME
   ============================================ */
.skin-wims .input-group-append .btn,
.skin-wims .input-group-btn .btn,
.skin-wims .btn-outline-secondary {
    background-color: rgba(42, 82, 152, 0.5);
    border: 1px solid rgba(42, 82, 152, 0.5);
    color: #ffffff;
    transition: all 0.3s ease;
}

.skin-wims .input-group-append .btn:hover,
.skin-wims .input-group-btn .btn:hover,
.skin-wims .btn-outline-secondary:hover {
    background-color: rgba(42, 82, 152, 0.8);
    border-color: #2a5298;
    color: #ffffff;
}

.skin-wims .input-group-append .btn:focus,
.skin-wims .input-group-btn .btn:focus,
.skin-wims .btn-outline-secondary:focus {
    background-color: rgba(42, 82, 152, 0.8);
    border-color: #2a5298;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.3);
}

.skin-wims .input-group .form-control + .input-group-append .btn,
.skin-wims .input-group .form-control + .input-group-btn .btn {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ============================================
   LABELS AND TEXT - WIMS THEME
   ============================================ */
.skin-wims label {
    color: rgba(255, 255, 255, 0.9);
}

/* .skin-wims .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
} */

/* ============================================
   BTN-APP BUTTONS - WIMS THEME
   ============================================ */
.skin-wims .btn-app {
    background-color: rgba(42, 82, 152, 0.3);
    border: 1px solid rgba(42, 82, 152, 0.5);
    color: #ffffff;
    transition: all 0.3s ease;
}

.skin-wims .btn-app:hover,
.skin-wims .btn-app:focus {
    background-color: rgba(42, 82, 152, 0.6) !important;
    border-color: #2a5298 !important;
    color: #ffffff !important;
}

.skin-wims .btn-app:hover > .fa,
.skin-wims .btn-app:focus > .fa,
.skin-wims .btn-app:hover i,
.skin-wims .btn-app:focus i {
    color: #ffffff !important;
}

.skin-wims .btn-app.active {
    background-color: rgba(42, 82, 152, 0.8);
    border-color: #2a5298;
    box-shadow: 0 0 10px rgba(42, 82, 152, 0.5);
}

.skin-wims .btn-app.btn-info {
    background-color: rgba(42, 82, 152, 0.4);
    border-color: rgba(42, 82, 152, 0.6);
}

.skin-wims .btn-app.btn-info:hover {
    background-color: rgba(42, 82, 152, 0.7) !important;
    border-color: #2a5298 !important;
}

.skin-wims .btn-app.btn-warning {
    background-color: rgba(243, 156, 18, 0.4);
    border-color: rgba(243, 156, 18, 0.6);
}

.skin-wims .btn-app.btn-warning:hover {
    background-color: rgba(243, 156, 18, 0.7) !important;
    border-color: #f39c12 !important;
}

.skin-wims .btn-app.btn-default {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.skin-wims .btn-app.btn-default:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================
   PAGINATION IN CONTENT - WIMS THEME
   ============================================ */
.skin-wims .pagination > li > a,
.skin-wims .pagination > li > span {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(42, 82, 152, 0.3);
    color: #ffffff;
}

.skin-wims .pagination > li > a:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-color: #2a5298;
    color: #ffffff;
}

.skin-wims .pagination > .active > a,
.skin-wims .pagination > .active > span {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-color: #2a5298;
}

/* ============================================
   INPUT GROUP - WIMS THEME
   ============================================ */
.skin-wims .input-group-addon {
    background-color: rgba(42, 82, 152, 0.3);
    border-color: rgba(42, 82, 152, 0.3);
    color: #ffffff;
}

/* ============================================
   INFO BOX - WIMS THEME (DARK MODE)
   ============================================ */
.skin-wims .info-box {
    background: linear-gradient(135deg, #24243e 0%, #1a1a2e 100%);
    border: 1px solid rgba(42, 82, 152, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skin-wims .info-box-content {
    color: rgba(255, 255, 255, 0.9);
}

.skin-wims .info-box-text {
    color: rgba(255, 255, 255, 0.8);
}

.skin-wims .info-box-number {
    color: #ffffff;
}

.skin-wims .info-box-ex {
    color: rgba(255, 255, 255, 0.6);
}

.skin-wims .info-box .progress {
    background: rgba(255, 255, 255, 0.2);
}

.skin-wims .info-box .progress-bar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* ============================================
   NEO AND CUSTOM TAGS - WIMS THEME
   ============================================ */
.skin-wims neo {
    color: #4fd1c5;
}

.skin-wims err {
    color: #fc8181;
}

/* ============================================
   LIGHT MODE STYLES
   ============================================ */

/* Light Mode - Theme Toggle Button */
.skin-wims.light-mode .theme-toggle-menu > a i {
    color: #333333;
}

/* Light Mode - Navbar */
.skin-wims.light-mode .main-header .navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
}

/* Light Mode - Logo */
.skin-wims.light-mode .main-header .logo {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
}

.skin-wims.light-mode .main-header .logo:hover {
    background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
}

/* Light Mode - User Header */
.skin-wims.light-mode .main-header li.user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Light Mode - Sidebar */
.skin-wims.light-mode .wrapper,
.skin-wims.light-mode .main-sidebar,
.skin-wims.light-mode .left-side {
    background: linear-gradient(180deg, #f8f9fc 0%, #edf2f7 50%, #e2e8f0 100%);
}

.skin-wims.light-mode .sidebar-menu > li.header {
    color: #718096;
    background: rgba(0, 0, 0, 0.05);
}

.skin-wims.light-mode .sidebar-menu > li > a {
    color: #4a5568;
}

.skin-wims.light-mode .sidebar-menu > li:hover > a,
.skin-wims.light-mode .sidebar-menu > li.active > a {
    color: #2d3748;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-left-color: #667eea;
}

.skin-wims.light-mode .sidebar-menu > li.active > a {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, rgba(102, 126, 234, 0.1) 100%);
}

.skin-wims.light-mode .sidebar-menu > li > .treeview-menu {
    background: rgba(0, 0, 0, 0.03);
}

.skin-wims.light-mode .sidebar a {
    color: #4a5568;
}

.skin-wims.light-mode .sidebar a:hover {
    color: #2d3748;
}

.skin-wims.light-mode .treeview-menu > li > a {
    color: #718096;
}

.skin-wims.light-mode .treeview-menu > li.active > a,
.skin-wims.light-mode .treeview-menu > li > a:hover {
    color: #2d3748;
    background: rgba(102, 126, 234, 0.1);
}

.skin-wims.light-mode .user-panel > .info,
.skin-wims.light-mode .user-panel > .info > a {
    color: #2d3748;
}

/* Light Mode - Sidebar Form */
.skin-wims.light-mode .sidebar-form {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.skin-wims.light-mode .sidebar-form input[type="text"],
.skin-wims.light-mode .sidebar-form .btn {
    background-color: #ffffff;
    color: #333;
}

.skin-wims.light-mode .sidebar-form input[type="text"]::placeholder {
    color: #a0aec0;
}

.skin-wims.light-mode .sidebar-form .btn {
    color: #4a5568;
}

/* Light Mode - Content Wrapper */
.skin-wims.light-mode .content-wrapper {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
}

.skin-wims.light-mode .content-header h1,
.skin-wims.light-mode .content-header h2 {
    color: #2d3748;
}

.skin-wims.light-mode .content-header h1 small,
.skin-wims.light-mode .content-header h2 small {
    color: #718096;
}

/* Light Mode - Footer */
.skin-wims.light-mode .main-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Light Mode - Box */
.skin-wims.light-mode .box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.skin-wims.light-mode .box-body {
    color: #2d3748;
}

.skin-wims.light-mode .box-header {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%) !important;
    border-bottom: 1px solid #e2e8f0;
}

.skin-wims.light-mode .box-header.with-border {
    border-bottom: 1px solid #cbd5e0;
}

.skin-wims.light-mode .box-header .box-title {
    color: #2d3748 !important;
}

.skin-wims.light-mode .box-header .box-tools .btn {
    color: #4a5568 !important;
}

.skin-wims.light-mode .box-header .box-tools .btn:hover {
    color: #667eea !important;
}

/* Light Mode - Box Primary/Info/Success variants */
.skin-wims.light-mode .box-primary > .box-header,
.skin-wims.light-mode .box-info > .box-header {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
}

.skin-wims.light-mode .box-success > .box-header {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
}

.skin-wims.light-mode .box-warning > .box-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
}

.skin-wims.light-mode .box-danger > .box-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
}

/* Light Mode - Nav Tabs Custom */
.skin-wims.light-mode .nav-tabs-custom {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.skin-wims.light-mode .nav-tabs-custom > .nav-tabs {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.skin-wims.light-mode .nav-tabs-custom > .tab-content {
    color: #2d3748;
}

/* Light Mode - Tap Box */
.skin-wims.light-mode .tap-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Light Mode - Table */
.skin-wims.light-mode .table {
    color: #2d3748;
    border-collapse: separate;
    border-spacing: 0;
}

.skin-wims.light-mode .table > thead > tr > th,
.skin-wims.light-mode .table > thead > tr > td {
    background: linear-gradient(180deg, #8b9fd4 0%, #7a8ec8 50%, #667eea 100%);
    color: #ffffff;
    border-bottom: 2px solid #8fa4e8;
    border-top: 1px solid #a5b5f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skin-wims.light-mode .table > thead > tr > th:first-child {
    border-top-left-radius: 6px;
}

.skin-wims.light-mode .table > thead > tr > th:last-child {
    border-top-right-radius: 6px;
}

.skin-wims.light-mode .table > tbody > tr > td {
    border-top: 1px solid #e2e8f0;
    color: #2d3748;
    padding: 10px 15px;
}

.skin-wims.light-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f7fafc;
}

.skin-wims.light-mode .table-striped > tbody > tr:nth-of-type(even) {
    background-color: #ffffff;
}

.skin-wims.light-mode .table-hover > tbody > tr:hover {
    background-color: rgba(102, 126, 234, 0.2) !important;
    transition: background-color 0.2s ease;
}

.skin-wims.light-mode .table-hover > tbody > tr:hover > td {
    color: #2d3748 !important;
    background-color: transparent !important;
}

/* Light Mode - Fix for editable table rows */
.skin-wims.light-mode .table > tbody > tr:hover,
.skin-wims.light-mode .table > tbody > tr.selected {
    background-color: rgba(102, 126, 234, 0.2) !important;
}

.skin-wims.light-mode .table > tbody > tr:hover > td,
.skin-wims.light-mode .table > tbody > tr.selected > td {
    color: #2d3748 !important;
    background-color: transparent !important;
}

.skin-wims.light-mode tr:hover {
    background-color: rgba(102, 126, 234, 0.2) !important;
}

.skin-wims.light-mode tr:hover td {
    color: #2d3748 !important;
}

.skin-wims.light-mode .table-bordered {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.skin-wims.light-mode .table-bordered > thead > tr > th,
.skin-wims.light-mode .table-bordered > thead > tr > td {
    border: 1px solid rgba(143, 164, 232, 0.5);
}

.skin-wims.light-mode .table-bordered > tbody > tr > th,
.skin-wims.light-mode .table-bordered > tbody > tr > td {
    border: 1px solid #e2e8f0;
}

/* Light Mode - Form Controls */
.skin-wims.light-mode .form-control {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #2d3748;
}

.skin-wims.light-mode .form-control:focus {
    background-color: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    color: #2d3748;
}

.skin-wims.light-mode .form-control::placeholder {
    color: #a0aec0;
}

.skin-wims.light-mode input.form-control,
.skin-wims.light-mode textarea.form-control,
.skin-wims.light-mode select.form-control {
    color: #2d3748;
}

/* Light Mode - Select */
.skin-wims.light-mode select.form-control,
.skin-wims.light-mode select.btn {
    background-color: #ffffff;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.skin-wims.light-mode select.form-control option,
.skin-wims.light-mode select.btn option {
    background-color: #ffffff;
    color: #2d3748;
}

.skin-wims.light-mode select.form-control:focus,
.skin-wims.light-mode select.btn:focus {
    background-color: #ffffff;
    border-color: #667eea;
}

/* Light Mode - Labels */
.skin-wims.light-mode label {
    color: #4a5568;
}

.skin-wims.light-mode .text-muted {
    color: #718096 !important;
}

/* Light Mode - Pagination */
.skin-wims.light-mode .pagination > li > a,
.skin-wims.light-mode .pagination > li > span {
    background-color: #ffffff;
    border-color: #e2e8f0;
    color: #4a5568;
}

.skin-wims.light-mode .pagination > li > a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
}

.skin-wims.light-mode .pagination > .active > a,
.skin-wims.light-mode .pagination > .active > span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* Light Mode - Input Group */
.skin-wims.light-mode .input-group-addon {
    background-color: #edf2f7;
    border-color: #e2e8f0;
    color: #4a5568;
}

/* Light Mode - Search Button */
.skin-wims.light-mode .input-group-append .btn,
.skin-wims.light-mode .input-group-btn .btn,
.skin-wims.light-mode .btn-outline-secondary {
    background-color: #667eea;
    border: 1px solid #667eea;
    color: #ffffff;
    transition: all 0.3s ease;
}

.skin-wims.light-mode .input-group-append .btn:hover,
.skin-wims.light-mode .input-group-btn .btn:hover,
.skin-wims.light-mode .btn-outline-secondary:hover {
    background-color: #5a67d8;
    border-color: #5a67d8;
    color: #ffffff;
}

.skin-wims.light-mode .input-group-append .btn:focus,
.skin-wims.light-mode .input-group-btn .btn:focus,
.skin-wims.light-mode .btn-outline-secondary:focus {
    background-color: #5a67d8;
    border-color: #5a67d8;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Light Mode - Info Box */
.skin-wims.light-mode .info-box {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.skin-wims.light-mode .info-box-text {
    color: #4a5568;
}

.skin-wims.light-mode .info-box-number {
    color: #2d3748;
}

.skin-wims.light-mode .info-box-ex {
    color: #718096;
}

/* Light Mode - Small Box */
.skin-wims.light-mode .small-box {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Light Mode - Dropdown */
.skin-wims.light-mode .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skin-wims.light-mode .dropdown-menu > li > a {
    color: #4a5568;
}

.skin-wims.light-mode .dropdown-menu > li > a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Light Mode - Modal */
.skin-wims.light-mode .modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.skin-wims.light-mode .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.skin-wims.light-mode .modal-body {
    color: #2d3748;
}

.skin-wims.light-mode .modal-body .form-control {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #2d3748;
}

.skin-wims.light-mode .modal-body .form-control:focus {
    border-color: #667eea;
}

.skin-wims.light-mode .modal-body label {
    color: #4a5568;
}

.skin-wims.light-mode .modal-footer {
    border-top: 1px solid #e2e8f0;
}

/* Light Mode - Alert */
.skin-wims.light-mode .alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15) 0%, rgba(72, 187, 120, 0.1) 100%);
    color: #276749;
}

.skin-wims.light-mode .alert-info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.15) 0%, rgba(66, 153, 225, 0.1) 100%);
    color: #2b6cb0;
}

.skin-wims.light-mode .alert-warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.15) 0%, rgba(237, 137, 54, 0.1) 100%);
    color: #c05621;
}

.skin-wims.light-mode .alert-danger {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.15) 0%, rgba(245, 101, 101, 0.1) 100%);
    color: #c53030;
}

/* Light Mode - Neo/Err Tags */
.skin-wims.light-mode neo {
    color: #319795;
    text-shadow: none;
}

.skin-wims.light-mode err {
    color: #e53e3e;
    text-shadow: none;
}

/* Light Mode - Hr */
.skin-wims.light-mode hr {
    border-color: #e2e8f0;
}

/* Light Mode - Callout */
.skin-wims.light-mode .callout {
    background: #ffffff;
}

.skin-wims.light-mode .callout.callout-info {
    border-left-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Light Mode - Btn-App Buttons */
.skin-wims.light-mode .btn-app {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.skin-wims.light-mode .btn-app:hover,
.skin-wims.light-mode .btn-app:focus {
    background-color: #f7fafc !important;
    border-color: #667eea !important;
    color: #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.skin-wims.light-mode .btn-app:hover > .fa,
.skin-wims.light-mode .btn-app:focus > .fa,
.skin-wims.light-mode .btn-app:hover i,
.skin-wims.light-mode .btn-app:focus i {
    color: #667eea !important;
}

.skin-wims.light-mode .btn-app.active {
    background-color: #667eea !important;
    border-color: #667eea !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.skin-wims.light-mode .btn-app.active > .fa,
.skin-wims.light-mode .btn-app.active i {
    color: #ffffff !important;
}

.skin-wims.light-mode .btn-app.btn-info.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5), 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
    transform: translateY(-2px);
}

.skin-wims.light-mode .btn-app.btn-info.active > .fa,
.skin-wims.light-mode .btn-app.btn-info.active i {
    color: #ffffff !important;
}

.skin-wims.light-mode .btn-app.btn-info {
    background-color: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.skin-wims.light-mode .btn-app.btn-info:hover {
    background-color: rgba(102, 126, 234, 0.2) !important;
    border-color: #667eea !important;
}

.skin-wims.light-mode .btn-app.btn-warning {
    background-color: rgba(237, 137, 54, 0.1);
    border-color: rgba(237, 137, 54, 0.3);
    color: #dd6b20;
}

.skin-wims.light-mode .btn-app.btn-warning:hover {
    background-color: rgba(237, 137, 54, 0.2) !important;
    border-color: #dd6b20 !important;
}

.skin-wims.light-mode .btn-app.btn-default {
    background-color: #ffffff;
    border-color: #e2e8f0;
    color: #4a5568;
}

.skin-wims.light-mode .btn-app.btn-default:hover {
    background-color: #f7fafc !important;
    border-color: #cbd5e0 !important;
}

/* Light Mode - Scrollbar */
.skin-wims.light-mode .sidebar::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.skin-wims.light-mode .sidebar::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
}

.skin-wims.light-mode .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}
