.hse-login-body,
.hse-dashboard-body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #f4f8ff;
}

.hse-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #153d8a, #2d66c3 48%, #54c58f);
}

.hse-login-panel {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 44px;
    align-items: center;
    padding: 52px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
}

.hse-brand {
    color: #244f9f;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hse-login-panel h1 {
    margin: 0 0 16px;
    font-size: 44px;
    line-height: 1.05;
}

.hse-login-panel form,
.hse-login-panel label {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hse-login-panel form {
    gap: 18px;
}

.hse-login-panel input,
.hse-panel input,
.hse-panel select,
.hse-panel textarea {
    min-height: 48px;
    border: 1px solid #d8dce6;
    border-radius: 8px;
    padding: 10px 14px;
    font: inherit;
    background: #fff;
}

.hse-checkbox {
    flex-direction: row !important;
    align-items: center;
}

.hse-checkbox input {
    min-height: auto;
}

.hse-login-panel button,
.hse-panel button,
.hse-dash-sidebar button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #244f9f;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.hse-error {
    margin: 0;
    color: #b42318;
    font-weight: 700;
}

.hse-dashboard {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
}

.hse-dash-sidebar {
    background: linear-gradient(180deg, #1d4896 0%, #14356f 100%);
    color: #fff;
    padding: 30px 22px;
    box-shadow: 16px 0 40px rgba(21, 61, 138, .14);
}

.hse-dash-sidebar strong {
    display: block;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    padding: 10px 6px 24px;
    font-size: 24px;
    line-height: 1.1;
}

.hse-dash-sidebar strong::before {
    content: "Pocket";
    display: block;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.hse-dash-sidebar strong {
    font-size: 0;
}

.hse-dash-sidebar strong::after {
    content: "HRMS Holidays";
    display: block;
    margin-top: 3px;
    color: #dce9ff;
    font-size: 17px;
    font-weight: 700;
}

.hse-dash-sidebar nav,
.hse-dash-sidebar form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hse-dash-sidebar a,
.hse-dash-sidebar button {
    color: #fff;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 8px;
    text-align: left;
    font: inherit;
}

.hse-dash-sidebar a.is-active,
.hse-dash-sidebar a:hover {
    background: rgba(255, 255, 255, .16);
}

.hse-dash-main {
    padding: 34px;
}

.hse-dash-main header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid #dbe7fb;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #ecf5ff);
    padding: 22px 24px;
}

.hse-dash-main h1 {
    margin: 0;
    color: #153d8a;
    font-size: 34px;
}

.hse-dash-main header p {
    margin: 0 0 6px;
    color: #4f78bd;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hse-preview-link {
    border: 1px solid #b8d1ff;
    border-radius: 8px;
    background: #244f9f;
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 700;
}

.hse-alert {
    margin-bottom: 18px;
    border: 1px solid #badbcc;
    border-radius: 8px;
    background: #d1e7dd;
    color: #0f5132;
    padding: 12px 16px;
    font-weight: 700;
}

.hse-alert-muted {
    border-color: #d8dce6;
    background: #fff;
    color: #424958;
}

.hse-alert-error {
    border-color: #f1aeb5;
    background: #f8d7da;
    color: #842029;
}

.hse-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.hse-stat-grid div,
.hse-panel {
    border: 1px solid #dbe7fb;
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(36, 79, 159, .07);
}

.hse-stat-grid span {
    display: block;
    color: #697083;
}

.hse-stat-grid strong {
    display: block;
    margin-top: 12px;
    color: #244f9f;
    font-size: 42px;
}

.hse-dash-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.hse-form-stack {
    display: grid;
    gap: 18px;
}

.hse-panel {
    overflow: hidden;
}

.hse-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.hse-panel form,
.hse-panel label {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.hse-panel form {
    gap: 14px;
}

.hse-help {
    margin: 0;
    color: #697083;
    font-size: 13px;
    line-height: 1.5;
}

.hse-check-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    color: #424958;
    font-size: 14px;
}

.hse-check-row input {
    width: 16px;
    min-height: 16px;
}

.hse-panel-wide {
    min-width: 0;
}

.hse-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hse-dash-table th,
.hse-dash-table td {
    border-bottom: 1px solid #edf0f6;
    padding: 13px 12px;
    text-align: left;
    vertical-align: middle;
}

.hse-dash-table th {
    color: #697083;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hse-badge {
    display: inline-flex;
    border-radius: 999px;
    background: #e8f7ef;
    color: #157347;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.hse-inline-form {
    flex-direction: row !important;
    align-items: center;
}

.hse-inline-form select {
    min-height: 38px;
}

.hse-inline-form button {
    min-height: 38px;
    padding: 0 12px;
}

.hse-url-link {
    display: inline-block;
    max-width: 320px;
    overflow: hidden;
    color: #244f9f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hse-seo-row,
.hse-seo-grid {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.5fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f6;
}

.hse-schema-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr) auto;
    align-items: start;
}

.hse-seo-card {
    border: 1px solid #dbe7fb;
    border-radius: 8px;
    background: #f8fbff;
    padding: 18px;
    margin-bottom: 18px;
}

.hse-seo-card h3 {
    margin: 0 0 8px;
    color: #153d8a;
}

.hse-filter-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    align-items: end;
    gap: 12px !important;
    margin-bottom: 18px;
}

.hse-danger-form button {
    background: #dc3545;
}

.hse-settings-list {
    display: grid;
    gap: 12px;
}

.hse-settings-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #edf0f6;
    border-radius: 8px;
    padding: 16px;
}

.hse-settings-list span {
    color: #697083;
}

@media (max-width: 800px) {
    .hse-login-panel,
    .hse-dashboard,
    .hse-dash-grid,
    .hse-seo-row,
    .hse-seo-grid,
    .hse-schema-grid,
    .hse-filter-form {
        grid-template-columns: 1fr;
    }

    .hse-dash-sidebar {
        position: static;
    }

    .hse-dash-main header,
    .hse-settings-list div {
        align-items: flex-start;
        flex-direction: column;
    }

    .hse-dash-table {
        display: block;
        overflow-x: auto;
    }
}


/* ===== UPDATED DASHBOARD SIDEBAR ===== */
.hse-dash-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.hse-dash-sidebar a,
.hse-dash-sidebar a:visited,
.hse-dash-sidebar a:hover,
.hse-dash-sidebar a:focus,
.hse-dash-sidebar a.is-active {
    color: #ffffff !important;
    transition: all .25s ease;
}

.hse-dash-sidebar a:hover,
.hse-dash-sidebar a.is-active {
    background: rgba(255,255,255,.14);
    transform: translateX(4px);
}

/* ===== UPDATED SEO SECTION ===== */
.hse-seo-modern {
    display: grid;
    gap: 24px;
}

.hse-seo-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.hse-seo-box {
    border: 1px solid #dbe7fb;
    border-radius: 16px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.hse-seo-box h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #153d8a;
}

.hse-seo-grid-modern {
    display: grid;
    gap: 16px;
}

.hse-seo-grid-modern input,
.hse-seo-grid-modern textarea,
.hse-seo-selector select {
    width: 100%;
    border: 1px solid #d0d9ea;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
}

.hse-seo-grid-modern button {
    width: fit-content;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #244f9f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   Desktop untouched
========================================== */

@media (max-width: 991px) {

    .hse-dashboard-shell,
    .hse-dashboard-layout,
    .hse-dashboard-wrapper {
        display: block !important;
        width: 100% !important;
    }

    .hse-dash-sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        border-radius: 0 0 18px 18px;
        margin-bottom: 18px;
    }

    .hse-dash-sidebar ul,
    .hse-dash-sidebar nav {
        display: flex !important;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .hse-dash-sidebar li {
        flex: 0 0 auto;
    }

    .hse-dash-sidebar a {
        white-space: nowrap;
        padding: 12px 16px !important;
        font-size: 14px;
        border-radius: 10px;
    }

    .hse-dashboard-content,
    .hse-main-content,
    .hse-panel {
        width: 100% !important;
        padding: 18px !important;
        overflow: hidden;
    }

    .hse-panel h1,
    .hse-panel h2 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    .hse-seo-selector {
        grid-template-columns: 1fr !important;
    }

    .hse-seo-grid-modern {
        grid-template-columns: 1fr !important;
    }

    .hse-seo-box {
        padding: 18px !important;
        border-radius: 14px;
    }

    .hse-seo-grid-modern input,
    .hse-seo-grid-modern textarea,
    .hse-seo-selector select {
        font-size: 16px !important;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }

    .hse-card-grid,
    .dashboard-cards,
    .hse-stat-grid {
        grid-template-columns: 1fr !important;
    }

    .hse-btn,
    button,
    input[type="submit"] {
        width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {

    .hse-panel,
    .hse-dashboard-content {
        padding: 14px !important;
    }

    .hse-panel h1,
    .hse-panel h2 {
        font-size: 20px !important;
    }

    .hse-dash-sidebar a {
        padding: 10px 14px !important;
        font-size: 13px;
    }

    .hse-seo-box {
        padding: 14px !important;
    }
}


/* ==========================================
MOBILE TABLE FIX
========================================== */

@media (max-width:768px){

    .holiday-table-wrapper,
    .table-responsive,
    .holiday-table-scroll {
        width:100%;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        margin-bottom:20px;
    }

    table {
        min-width:700px !important;
        border-collapse:collapse;
    }

    table td,
    table th{
        white-space:nowrap;
        font-size:14px;
    }

    /* content order mobile */
    .holiday-list-section{
        order:99 !important;
    }

    .government-notice-section,
    .download-notification-section{
        margin-top:30px;
        overflow:hidden;
        word-break:break-word;
    }
}

/* ==========================================
BOTTOM CTA FULL SITE
========================================== */

.hse-bottom-cta{
    width:100%;
    margin:40px auto 10px;
    padding:20px;
}

.hse-bottom-cta-inner{
    background:#ffffff;
    border:1px solid #ececec;
    border-radius:60px;
    padding:18px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.hse-bottom-cta-text{
    font-size:28px;
    font-weight:600;
    color:#222;
    line-height:1.4;
}

.hse-bottom-cta-btn{
    background:#3f006b;
    color:#fff !important;
    text-decoration:none;
    padding:18px 34px;
    border-radius:40px;
    font-size:20px;
    font-weight:700;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

@media (max-width:768px){

    .hse-bottom-cta{
        padding:10px;
    }

    .hse-bottom-cta-inner{
        border-radius:24px;
        flex-direction:column;
        align-items:flex-start;
        padding:20px;
    }

    .hse-bottom-cta-text{
        font-size:18px;
    }

    .hse-bottom-cta-btn{
        width:100%;
        text-align:center;
        font-size:16px;
        padding:14px 20px;
    }
}
