* {
    box-sizing: border-box;
}
@font-face {
    font-family: FontAwesome;
    src: url(../less/icons/font-awesome/fonts/fontawesome-webfont3295.eot?v=4.5.0);
    src:
        url(../less/icons/font-awesome/fonts/fontawesome-webfontd41d.eot?#iefix&v=4.5.0)
            format("embedded-opentype"),
        url(../less/icons/font-awesome/fonts/fontawesome-webfont3295.woff2?v=4.5.0)
            format("woff2"),
        url(../less/icons/font-awesome/fonts/fontawesome-webfont3295.woff?v=4.5.0)
            format("woff"),
        url(../less/icons/font-awesome/fonts/fontawesome-webfont3295.ttf?v=4.5.0)
            format("truetype"),
        url(../less/icons/font-awesome/fonts/fontawesome-webfont3295.svg?v=4.5.0#fontawesomeregular)
            format("svg");
    font-weight: 400;
    font-style: normal;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fa-power-off:before {
    content: "\f011";
}
.fa-pencil:before {
    content: "\f303";
}
body {
    font-family: "Mukta", sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f7f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.theme-blue{
    color: #0e1778 !important;
}
/* ================= HEADER ================= */

.header {
    background: #ffffff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-title {
    min-width: 0;
}

.header-title h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #1a237e;
    font-weight: 800;
    word-break: break-word;
}

.header-title p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}
/* LEFT */
.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

/* LOGO */
.sahakar-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

/* RIGHT */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-wrap: wrap;
    justify-content: flex-end;

    font-weight: bold;
    color: #d32f2f;
}

/* SOC NAME */
#displaySocName {
    background: #f5f7fb;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1a237e;
    font-size: 0.85rem;
}

/* LOGOUT */
.btn-logout {
    background: #d32f2f;
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-logout:hover {
    color: white;
    background: #b71c1c;
}
.mobile-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #1a237e;
    margin-left: auto;
}

@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
        align-items: flex-start;
    }

    .logo-area {
        width: 100%;
    }

    .header-title h1 {
        font-size: 18px;
    }

    .header-title p {
        font-size: 12px;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    #displaySocName {
        flex: 1 1 100%;
        text-align: center;
        font-size: 0.80rem;
    }

    .btn-logout {
        font-size: 0.80rem;
        padding: 10px 12px;
    }

    .mobile-toggle {
        display: block;
    }
    .sidebar-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        border: none;
        background: transparent;
        font-size: 22px;
        cursor: pointer;
    }
}
@media (max-width: 480px) {
    .header {
        gap: 12px;
    }

    .sahakar-logo {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .header-title h1 {
        font-size: 16px;
    }

    .header-title p {
        font-size: 11px;
    }

    .user-info {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }

    #displaySocName {
        flex: 1;
        font-size: 0.80rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-logout {
        width: auto;
        flex-shrink: 0;
        padding: 10px 10px;
        font-size: 0.80rem;
    }

    .mobile-toggle {
        position: absolute;
        right: 15px;
        top: 18px;
    }
}
.main-wrapper {
    display: flex;
    flex: 1;
    position: relative;
}

/* NAVBAR */
.navbar {
    background: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 70px;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* LINKS */
.navbar-links {
    display: flex;
    gap: 5px;
}

/* LINKS STYLE */
.navbar-links a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
}
.navbar-links a:hover,
.navbar-links a.active {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #ffeb3b;
}

/* DROPDOWN */
.nav-dropdown {
    position: relative;
}

/* dropdown menu */
.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* MOBILE TOGGLE */
.navbar-toggle {
    display: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        top: 60px;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2e7d32;
        margin-top: 10px;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links a {
        width: 100%;
        padding: 12px;
    }

    /* dropdown becomes static */
    .nav-dropdown .dropdown-menu {
        position: relative;
        display: none;
        box-shadow: none;
        background: #1b5e20;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }
}

/* Left Sidebar */
.sidebar {
    width: 290px;
    background: linear-gradient(180deg, #f4fbfa 0%, #edf7f5 45%, #f8fbfd 100%);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid #d9e8e5;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.05);
    z-index: 50;
}

.sidebar-top {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #dbe7e5;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.sidebar-logo-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(20, 184, 166, 0.18);
}

.sidebar-logo h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.sidebar-logo p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.sidebar-title {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dbe7e5;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.sidebar-nav {
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px 10px;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.3s ease;
    border: 1px solid #d7d7d7;
    text-decoration: none;
}

.nav-item:hover {
    background: #ffffff;
    border-color: #d9e8e5;
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    text-decoration: none;
}

.nav-item.active {
    background: #fff;
    border-color: #99f6e4;
    box-shadow: 0 10px 22px rgba(20, 184, 166, 0.1);
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: #ecfeff;
    border: 1px solid #c1dafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.nav-icon.green {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.nav-icon.blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.nav-icon.theme-blue {
    color: #0e1778 !important;
}

.nav-content h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.nav-content p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.sidebar-tools {
    padding: 0 14px 20px;
}

.font-install-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    transition: 0.3s ease;
    text-decoration: none;
    color: #0f172a;
}

.font-install-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.1);
    color: #0f172a;
}

.font-install-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.font-install-card h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.font-install-card p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 14px;
}

.support-card {
    background: #ffffff;
    border: 1px solid #dbe7e5;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.support-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.support-card strong {
    font-size: 24px;
    font-weight: 800;
    color: #0f766e;
    letter-spacing: 1px;
}

.sidebar-close {
    display: none;
}
@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar-top {
        padding: 18px 15px;
        margin-top: 2rem;
    }
    .sidebar-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        border: none;
        background: transparent;
        font-size: 22px;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .sidebar-top {
        padding: 18px 15px;
        margin-top: 2rem;
    }

    .sidebar-nav {
        padding: 15px;
    }

    .nav-item {
        padding: 14px;
    }

    .nav-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .sidebar-footer {
        padding: 15px;
    }
}

.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1200;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.2);
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
    }

    .sidebar {
        position: fixed;
        top: 0;
        /* left: -320px; */
        /* width: 290px; */
        left: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1100;
        transition: 0.35s ease;
    }

    .sidebar.show {
        left: 0;
    }
}
.content-area {
    flex: 1;
    padding: 0;
    background: #eef2f5;
    overflow-y: auto;
}
.content-padding {
    padding: 15px !important;
}
.full-footer {
    background: #212121;
    color: #bdbdbd;
    text-align: center;
    padding: 10px 20px;
    font-size: 15px;
    line-height: 1.8;
    margin-top: auto;
}
.custom-badge {
    font-size: 0.80rem !important;
}
/* .custom-badge:hover {
    cursor: pointer;
} */
.status-active {
    cursor: not-allowed !important;
}
.status-inactive {
    cursor: pointer !important;
}
.modal-content {
    border: none !important;
}
.manager-modal {
    border: none;
    border-radius: 18px !important;
    overflow: hidden;
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); */
}

.manager-modal-header {
    background: #1a237e;
    color: #fff;
    padding: 12px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.manager-modal-header h4 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.manager-modal-header p {
    /* margin: 6px 0 0; */
    margin: 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.manager-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
}

.manager-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.manager-modal-body {
    padding: 25px 28px;
}

.manager-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.manager-modal-body .req {
    color: #dc2626;
}

.manager-modal .form-control {
    height: 48px;
    border-radius: 10px;
    border: 1px solid #dbe1e8;
    box-shadow: none;
}

.manager-modal .form-control:focus {
    border-color: #00897b;
    box-shadow: 0 0 0 4px rgba(0, 137, 123, 0.12);
}

.manager-modal-footer {
    padding: 18px 28px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    border: none;
    background: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-save {
    border: none;
    background: #1a237e;
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-save:hover {
    background: #0e1778;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 12px;
    }

    .manager-modal-header {
        padding: 18px;
    }

    .manager-modal-header h4 {
        font-size: 22px;
    }

    .manager-modal-body {
        padding: 18px;
    }

    .manager-modal-footer {
        padding: 18px;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-save {
        width: 100%;
    }
}
.status-modal {
    border: 0;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.status-modal-header {
    background: #1a237e;
    padding: 12px 22px;
    color: #fff;
}

.status-modal-header .modal-title {
    color: #fff;
    font-size: 18px;
}

.status-icon-wrapper {
    margin-bottom: 15px;
}

.status-icon {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    background: rgba(0, 137, 123, 0.1);
    color: #00897b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.status-message {
    color: #334155;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 10px;
}

.btn-theme-primary {
    background: #1a237e !important;
    color: #fff;
    border: 1px solid #fff;
    min-width: 110px;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
}

.btn-theme-primary:hover {
    background: #0e1778;
    color: #fff;
}

.btn-light-theme {
    background: #f1f5f9 !important;
    color: #475569;
    border: 1px solid #475569;
    min-width: 110px;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
}

.btn-light-theme:hover {
    background: #e2e8f0;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 12px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-theme-primary,
    .btn-light-theme {
        width: 100%;
    }
}
#myTable_processing {
    color: #fff;
    background: none !important;
}
.authority-card {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.theme-radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0;
}

.theme-radio-card:hover {
    border-color: #00897b;
    background: #f0fdfa;
}

.theme-radio-card input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #00897b;
    margin: 0;
}

.theme-radio-card span {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group select {
    height: 48px;
}

@media (max-width: 768px) {
    .authority-card {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-radio-card {
        width: 100%;
        min-width: 100%;
    }
}
