/* =========================================================
   ZetrikCloud - SRV Theme
   dashboard/assets/zetrik-srv.css

   Reference screenshots wali look: teal accent, flat white
   cards, patli borders, halka grey background, pill filters.

   Ye file sabse AAKHIR me load hoti hai aur purani CSS ke
   upar sirf rang aur card ka look badalti hai.
   HTML kuch badalna nahi padta.
   Theme hatana ho to iska <link> hata do.
   ========================================================= */

:root {
    /* Accent (screenshots wala dark teal) */
    --zs-teal:        #0f7b78;
    --zs-teal-dark:   #0b5f5d;
    --zs-teal-light:  #e6f4f3;

    /* Ink / text */
    --zs-ink:         #111827;
    --zs-text:        #374151;
    --zs-muted:       #6b7280;

    /* Surfaces */
    --zs-bg:          #f4f5f7;
    --zs-card:        #ffffff;
    --zs-line:        #e5e7eb;
    --zs-line-soft:   #f0f1f3;

    --zs-radius:      10px;
    --zs-radius-sm:   8px;
    --zs-shadow:      0 1px 2px rgba(16, 24, 40, .05);

    /* Purane variables isi theme pe */
    --blue:           var(--zs-teal);
    --blue-dark:      var(--zs-teal-dark);
    --blue-pale:      var(--zs-teal-light);
    --blue-pale-2:    var(--zs-teal-light);
    --border:         var(--zs-line);
    --bg-soft:        var(--zs-bg);
    --text-dark:      var(--zs-ink);
    --text-body:      var(--zs-text);
    --text-muted:     var(--zs-muted);
}

/* ===== Base ===== */
body,
.dash-body {
    background: var(--zs-bg);
    color: var(--zs-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, .dash-card-head h2, .ad-card h2 {
    color: var(--zs-ink);
    letter-spacing: -0.01em;
}

a { color: var(--zs-teal); }

/* =========================================================
   SIDEBAR
   ========================================================= */

.dash-sidebar,
.ad-side {
    background: var(--zs-card);
    border-right: 1px solid var(--zs-line);
    box-shadow: none;
}

.dash-sidebar-logo,
.ad-side-logo {
    border-bottom: 1px solid var(--zs-line);
}

.logo-cloud,
.ad-side-logo span { color: var(--zs-teal); }

/* Section heading jaisa chhota label */
.dash-nav-section,
.dash-nav-heading {
    font-size: 11.5px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--zs-muted);
    font-weight: 600;
}

.dash-nav-link,
.dash-nav-group > summary,
.ad-nav a {
    border-radius: var(--zs-radius-sm);
    font-weight: 500;
    color: var(--zs-text);
    transition: background .15s ease, color .15s ease;
}

.dash-nav-link:hover,
.dash-nav-group > summary:hover,
.ad-nav a:hover { background: var(--zs-line-soft); }

.dash-nav-link.active,
.dash-nav-group > summary.active,
.ad-nav a.active {
    background: var(--zs-teal-light);
    color: var(--zs-teal-dark);
    font-weight: 600;
    box-shadow: none;
}

.dash-nav-sub a { border-radius: 6px; }
.dash-nav-sub a.active { background: var(--zs-teal-light); color: var(--zs-teal-dark); }

.dash-upgrade-card {
    background: var(--zs-teal-light);
    border: 1px solid #cfe7e6;
    border-radius: var(--zs-radius);
    box-shadow: none;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.dash-topbar,
.ad-top {
    background: var(--zs-card);
    border-bottom: 1px solid var(--zs-line);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dash-icon-btn,
.dash-menu-btn,
.ad-menu-btn {
    background: var(--zs-card);
    border: 1px solid var(--zs-line);
    border-radius: var(--zs-radius-sm);
    box-shadow: none;
    color: var(--zs-text);
}

.dash-icon-btn:hover,
.dash-menu-btn:hover { background: var(--zs-line-soft); transform: none; }

.dash-user-avatar {
    background: var(--zs-teal);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}

/* =========================================================
   CARDS
   ========================================================= */

.dash-card,
.ad-card,
.hl-card,
.hl-stat,
.ad-stat,
.dash-stat-card,
.nt-preview,
.cart-choice,
.ps-service,
.extra-card {
    background: var(--zs-card);
    border: 1px solid var(--zs-line);
    border-radius: var(--zs-radius);
    box-shadow: var(--zs-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dash-card:hover,
.hl-card:hover { transform: none; box-shadow: var(--zs-shadow); }

.dash-card-head { border-bottom: 1px solid var(--zs-line); }
.dash-card-head h2 { font-size: 15.5px; font-weight: 700; }
.dash-card-head-sub { color: var(--zs-muted); }

/* Upar accent line wala card (screenshot ke notice jaise) */
.dash-card.accent-top,
.ad-card.accent-top { border-top: 3px solid var(--zs-teal); }

/* =========================================================
   TABLES / ROWS
   ========================================================= */

.ad-table th,
.dash-table th {
    background: transparent;
    color: var(--zs-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--zs-line);
}

.ad-table td,
.dash-table td { border-bottom: 1px solid var(--zs-line-soft); }

.ad-table tbody tr:hover,
.server-row:hover { background: #fafbfc; }

.server-row { border-radius: 0; transition: background .15s ease; }
.server-row-name { font-weight: 600; color: var(--zs-ink); }
.server-row-meta { color: var(--zs-muted); }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary,
.ad-btn,
.cart-pay-btn,
.host-btn-primary,
.hl-btn-primary,
.bk-btn-primary,
.st-btn,
.ky-btn,
.py-btn,
.ps-btn,
.tb-login {
    background: var(--zs-ink);          /* screenshots me primary button kaala hai */
    background-image: none;
    border: 1px solid var(--zs-ink);
    border-radius: var(--zs-radius-sm);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
    transition: background .15s ease;
}

.btn-primary:hover,
.ad-btn:hover,
.cart-pay-btn:hover,
.host-btn-primary:hover,
.hl-btn-primary:hover,
.st-btn:hover,
.ky-btn:hover,
.py-btn:hover,
.ps-btn:hover {
    background: #000;
    filter: none;
    transform: none;
}

/* Teal wala primary (Deploy / Add key jaise) */
.btn-teal,
.dash-action-btn.primary,
.ad-btn.teal {
    background: var(--zs-teal);
    border-color: var(--zs-teal);
    color: #fff;
}
.btn-teal:hover,
.ad-btn.teal:hover { background: var(--zs-teal-dark); }

.btn-outline,
.ad-btn-light,
.host-btn-light,
.hl-btn-light,
.cart-btn-light,
.ky-btn-light,
.py-btn-light,
.ps-btn-light,
.dash-action-btn,
.nt-btn {
    background: var(--zs-card);
    border: 1px solid var(--zs-line);
    border-radius: var(--zs-radius-sm);
    color: var(--zs-text);
    font-weight: 500;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ad-btn-light:hover,
.dash-action-btn:hover,
.host-btn-light:hover,
.hl-btn-light:hover { background: var(--zs-line-soft); border-color: #d9dce1; }

.dash-action-btn.danger,
.ad-btn-red { color: #b42318; border-color: #f3c9c6; background: #fff; }
.dash-action-btn.danger:hover { background: #fef3f2; }

/* =========================================================
   PILLS / TABS / TAGS
   ========================================================= */

.dash-filter-pill,
.dash-tab,
.nb {
    background: var(--zs-card);
    border: 1px solid var(--zs-line);
    border-radius: 999px;
    color: var(--zs-text);
    font-weight: 500;
    box-shadow: none;
    transition: background .15s ease;
}

.dash-filter-pill:hover, .dash-tab:hover { background: var(--zs-line-soft); transform: none; }

.dash-filter-pill.active,
.dash-tab.active,
.nb.active {
    background: var(--zs-teal);
    background-image: none;
    border-color: var(--zs-teal);
    color: #fff;
}

/* Underline wale tabs (settings page) */
.dash-tabs .dash-tab.active { color: #fff; }

/* Status / badges */
.ad-tag, .ps-chip, .server-row-status, .cart-save, .ky-req, .ky-opt {
    border-radius: 999px;
    font-weight: 600;
}

.server-row-status.status-running,
.ad-tag.green,
.ps-chip.ok { background: #e7f6ec; color: #0f7034; }

.server-row-status.status-stopped,
.ad-tag.red { background: #fdeceb; color: #b42318; }

.ad-tag.amber, .ps-chip.wait { background: #fdf3e2; color: #9a6400; }
.ad-tag.blue { background: var(--zs-teal-light); color: var(--zs-teal-dark); }
.ad-tag.grey { background: #f1f2f4; color: #5b6472; }

/* =========================================================
   FORMS
   ========================================================= */

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="datetime-local"], input[type="search"],
select, textarea {
    background: var(--zs-card) !important;
    border: 1px solid var(--zs-line) !important;
    border-radius: var(--zs-radius-sm) !important;
    color: var(--zs-text);
    box-shadow: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--zs-teal) !important;
    box-shadow: 0 0 0 3px rgba(15, 123, 120, .12) !important;
    outline: none !important;
}

.dash-search input { background: var(--zs-card) !important; }

/* Chuna hua card (plan / OS) */
.cart-choice.selected {
    border-color: var(--zs-teal);
    background: var(--zs-card);
    box-shadow: 0 0 0 1px var(--zs-teal);
}
.cart-choice:hover { border-color: #b9d6d5; }

/* =========================================================
   PROGRESS / METERS
   ========================================================= */

.usage-bar-track, .hl-bar, .host-bar, .ps-bar {
    background: #eceef1;
    border-radius: 999px;
}

.usage-bar-fill, .hl-bar span, .host-bar span, .ps-bar span {
    background: var(--zs-teal);
    background-image: none;
    border-radius: 999px;
}

.usage-bar-fill.usage-warn { background: #d97706; }
.usage-bar-fill.usage-danger { background: #dc2626; }

/* =========================================================
   DROPDOWNS / MODALS
   ========================================================= */

.tb-menu,
.nt-results,
.img-modal-content {
    background: var(--zs-card);
    border: 1px solid var(--zs-line);
    border-radius: var(--zs-radius);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tb-notify-item:hover, .tb-menu-link:hover { background: var(--zs-line-soft); }

/* Toasts */
.zc-toast {
    border-radius: var(--zs-radius);
    border: 1px solid var(--zs-line);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}
.zc-toast.ok .zc-toast-icon { background: #0f7034; }
.zc-toast.info .zc-toast-icon { background: var(--zs-teal); }

/* =========================================================
   AUTH PAGES
   ========================================================= */

.auth-form-side { background: var(--zs-card); backdrop-filter: none; -webkit-backdrop-filter: none; }

.auth-form-wrap {
    background: var(--zs-card);
    border: 1px solid var(--zs-line);
    border-radius: var(--zs-radius);
    box-shadow: var(--zs-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-visual-side {
    background-image: linear-gradient(160deg, #0b3b3a 0%, var(--zs-teal) 100%);
}

.auth-visual-card, .auth-visual-quote {
    background: rgba(255, 255, 255, .10) !important;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--zs-radius);
    backdrop-filter: none;
}

.fp-otp input { background: var(--zs-card) !important; }
.fp-step.active b { background: var(--zs-teal); }
.fp-step.active { color: var(--zs-teal-dark); }

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
    .dash-card, .ad-card, .hl-card { border-radius: var(--zs-radius); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
