/* ==============================
   SAFE FULL CENTER FIX (HMS ONLY)
============================== */

body.hms-active .site-content {
    width: 100%;
}

body.hms-active .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
}

body.hms-active .ast-container > .content-area {
    margin: 0 auto !important;
    float: none !important;
    width: 100% !important;
    display: block;
}

body.hms-active .site-content,
body.hms-active .ast-container,
body.hms-active #primary {
    display: block !important;
}

/* Your container */
.hms-container {
    max-width: 1100px;
    margin: 40px auto;
    margin-top: 20px;
    padding: 20px;
}
/* Hide default WordPress page title */

/* Hide ONLY theme page title */
body.hms-active .entry-title {
    display: none;
}
/* =========================
   ROOT VARIABLES
========================= */
:root {
    --hms-primary: #2b7cff;
    --hms-primary-dark: #1f5ed6;
    --hms-bg: #f5f7fb;
    --hms-white: #ffffff;
    --hms-text: #222;
    --hms-text-light: #666;
    --hms-border: #e5e7eb;
    --hms-radius: 12px;
    --hms-shadow: 0 5px 15px rgba(0,0,0,0.05);
}


/* =========================
   TYPOGRAPHY
========================= */
.hms-container h1,
.hms-container h2,
.hms-container h3 {
    color: var(--hms-text);
    margin-bottom: 10px;
}

.hms-container p {
    color: var(--hms-text-light);
    line-height: 1.6;
}


/* =========================
   BUTTONS
========================= */
.hms-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.hms-btn-primary {
    background: var(--hms-primary);
    color: #fff;
}

.hms-card-form .hms-btn-primary {
    display: block;
    width: 100%;
}

/* =========================
   APPROVE / REJECT BUTTONS
========================= */

/* APPROVE (GREEN) */
.hms-btn.approve {
    background: #16a34a;
    color: #fff;
    border: none;
}

.hms-btn.approve:hover {
    background: #15803d;
}

/* REJECT (RED) */
.hms-btn.reject {
    background: #dc2626;
    color: #fff;
    border: none;
}

.hms-btn.reject:hover {
    background: #b91c1c;
}

/* Fix upgrade button width */
.hms-upgrade-box .hms-btn {
    width: auto;
    display: inline-block;
}

.hms-btn-primary:hover {
    background: var(--hms-primary-dark);
}

.hms-btn-outline {
    background: transparent;
    border: 2px solid var(--hms-primary);
    color: var(--hms-primary);
}

.hms-btn-outline:hover {
    background: var(--hms-primary);
    color: #fff;
}


/* =========================
   CARD
========================= */
.hms-card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--hms-border);
    box-shadow: var(--hms-shadow);
    transition: all 0.2s ease;
}


/* =========================
   FORM ELEMENTS
========================= */
.hms-input,
.hms-select,
.hms-textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--hms-border);
    font-size: 14px;
    margin-bottom: 15px;
}

.hms-input:focus,
.hms-select:focus,
.hms-textarea:focus {
    outline: none;
    border-color: var(--hms-primary);
}


/* =========================
   GRID SYSTEM
========================= */
.hms-grid {
    display: grid;
    gap: 20px;
}

.hms-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hms-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hms-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}


/* =========================
   FLEX HELPERS
========================= */
.hms-flex {
    display: flex;
    gap: 10px;
}

.hms-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hms-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================
   SPACING UTILITIES
========================= */
.hms-mt-10 { margin-top: 10px; }
.hms-mt-20 { margin-top: 20px; }
.hms-mt-30 { margin-top: 30px; }

.hms-mb-10 { margin-bottom: 10px; }
.hms-mb-20 { margin-bottom: 20px; }
.hms-mb-30 { margin-bottom: 30px; }


/* =========================
   TEXT UTILITIES
========================= */
.hms-text-center { text-align: center; }
.hms-text-right { text-align: right; }


/* =========================
   BADGES / STATUS
========================= */
.hms-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.hms-badge-success {
    background: #e6f9f0;
    color: #1a7f4b;
}

.hms-badge-warning {
    background: #fff4e5;
    color: #b26a00;
}

.hms-badge-danger {
    background: #ffe5e5;
    color: #b20000;
}


/* =========================
   TABLE
========================= */
.hms-table {
    width: 100%;
    border-collapse: collapse;
}

.hms-table th,
.hms-table td {
    padding: 12px;
    border-bottom: 1px solid var(--hms-border);
    text-align: left;
}

.hms-table th {
    background: #fafafa;
    font-weight: 600;
}


/* =========================
   ALERTS
========================= */
.hms-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hms-alert-success {
    background: #e6f9f0;
    color: #1a7f4b;
}

.hms-alert-error {
    background: #ffe5e5;
    color: #b20000;
}


/* =========================
   LOADER (OPTIONAL)
========================= */
.hms-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--hms-primary);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: hms-spin 1s linear infinite;
}

@keyframes hms-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .hms-grid-2,
    .hms-grid-3,
    .hms-grid-4 {
        grid-template-columns: 1fr;
    }

    .hms-flex {
        flex-direction: column;
    }

}

/* =========================
   STAT CARDS UPGRADE
========================= */

.hms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* number */
.stat-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--hms-primary);
}

/* label */
.stat-label {
    font-size: 13px;
    color: var(--hms-text-light);
    margin-top: 5px;
}


/* =========================
   LOGOUT STYLE
========================= */
.hms-logout {
    color: #e74c3c;
    font-weight: 500;
}

.hms-logout:hover {
    color: #c0392b;
}


/* =========================
   MOBILE RESPONSIVE
========================= */
/*@media (max-width: 768px) {*/

/*    .hms-topbar {*/
/*        flex-direction: column;*/
/*        align-items: flex-start;*/
/*        gap: 10px;*/
/*    }*/

/*    .hms-topbar-right {*/
/*        flex-wrap: wrap;*/
/*        gap: 10px;*/
/*    }*/

/*}*/

/*.hms-topbar {*/
/*    box-shadow: 0 2px 10px rgba(0,0,0,0.05);*/
/*}*/

/* =========================
   ACTIVE MENU
========================= */
/*.hms-topbar-right a.hms-active {*/
/*    color: var(--hms-primary);*/
/*    font-weight: 600;*/
/*    position: relative;*/
/*}*/

/* underline effect */
/*.hms-topbar-right a.hms-active::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: -6px;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 2px;*/
/*    background: var(--hms-primary);*/
/*    border-radius: 2px;*/
/*}*/

/* =====================================================
   HMS FORM SYSTEM (CARD FORM)
===================================================== */

.hms-card-form {
    max-width: 600px;
    margin: 30px auto;

    background: #fff;
    padding: 25px;
    border-radius: var(--hms-radius);
    border: 1px solid var(--hms-border);

    box-shadow: var(--hms-shadow);
}

/* =========================
   FORM TITLE
========================= */
.hms-card-form h2,
.hms-card-form h3 {
    margin-bottom: 15px;
    text-align: center;
}

/* =========================
   FORM GROUP
========================= */
.hms-form-group {
    margin-bottom: 15px;
}


/* LABEL */
.hms-card-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--hms-text);
}

/* INPUT / SELECT / TEXTAREA */
.hms-card-form input,
.hms-card-form select,
.hms-card-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--hms-border);
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* FOCUS */
.hms-card-form input:focus,
.hms-card-form select:focus,
.hms-card-form textarea:focus {
    outline: none;
    border-color: var(--hms-primary);
    box-shadow: 0 0 0 2px rgba(43, 124, 255, 0.1);
}

/* =========================
   FORM ROW (2 COLUMN)
========================= */
.hms-form-row {
    display: flex;
    gap: 15px;
}

.hms-form-row .hms-form-group {
    flex: 1;
}

/* =========================
   BUTTON
========================= */
.hms-card-form .hms-btn {
    margin-top: 10px;
    padding: 12px;
    font-size: 15px;
}

/* =========================
   HELP TEXT / SMALL TEXT
========================= */
.hms-form-text {
    font-size: 12px;
    color: var(--hms-text-light);
    margin-top: 5px;
}

/* =========================
   ERROR STATE
========================= */
.hms-input-error {
    border-color: #e11d48 !important;
}

.hms-error-text {
    color: #e11d48;
    font-size: 12px;
    margin-top: 4px;
}

/* =========================
   SUCCESS MESSAGE
========================= */
.hms-form-success {
    background: #e6f9f0;
    color: #1a7f4b;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hms-form-row {
        flex-direction: column;
    }
}

/* PRO badge */
.hms-pro-badge {
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

/* PRO lock box */
.hms-pro-lock {
    background: #fff7ed;
    border: 1px dashed #f59e0b;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* schedule preview */
.hms-schedule-preview div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}


/* =========================
   REMOVE EXTRA TOP GAP (ASTRA FIX)
========================= */

body.hms-active .entry-header {
    display: none;
}

body.hms-active .site-content {
    padding-top: 0 !important;
}

body.hms-active .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.hms-active .content-area {
    margin-top: 0 !important;
}

body.hms-active .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.hms-active {
    background: #f5f7fb;
}

.hms-grid {
    margin-bottom: 25px;
}

.hms-pro-trigger {
    display: block;
    margin-bottom: 6px;
}

.hms-pro-note {
    font-size: 13px;
    color: #777;
    margin-top: 6px;
}

.hms-muted {
    color: #999;
    font-size: 13px;
}

.hms-pro-btn {
    margin-right: 6px;
    margin-bottom: 5px;
    display: inline-block;
}

