/*
 * style.css — Default theme
 * Editable via Admin → Appearance → Code Editor
 */

/* ── Base ────────────────────────────────────────────────────────────────── */

body {
    background-color: #f4f6f9;
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */

.navbar-default {
    background-color: #f8f8f8;
    border-color: #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

.navbar-default .navbar-brand {
    color: #777;
    font-weight: 600;
    font-size: 17px;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #5e5e5e;
    background-color: transparent;
}

.navbar-default .navbar-nav > li > a {
    color: #777;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #333;
    background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #555;
    background-color: #e7e7e7;
}

.navbar-default .navbar-toggle {
    border-color: #ddd;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #ddd;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #888;
}

/* Balance badge in navbar */
.navbar-default .navbar-nav > li > a .badge {
    background-color: #337ab7;
    color: #fff;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 10px;
    vertical-align: middle;
}

/* ── Form controls ───────────────────────────────────────────────────────── */

.form-control {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    height: 34px;
    color: #555;
    background-color: #fff;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}

.btn-success {
    background-color: #5cb85c;
    border-color: #4cae4c;
}

/* ── Status badges ───────────────────────────────────────────────────────── */

.badge-status {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    color: #fff;
    text-transform: capitalize;
}

.badge-pending     { background-color: #f0ad4e; }
.badge-processing  { background-color: #5bc0de; }
.badge-in_progress { background-color: #337ab7; }
.badge-completed   { background-color: #5cb85c; }
.badge-partial     { background-color: #9b59b6; }
.badge-cancelled,
.badge-canceled    { background-color: #d9534f; }
.badge-refunded    { background-color: #e67e22; }
.badge-failed      { background-color: #c0392b; }
.badge-active      { background-color: #5cb85c; }

/* ── Tables ──────────────────────────────────────────────────────────────── */

.table > thead > tr > th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: .3px;
}

.table > tbody > tr > td { vertical-align: middle; }
.table-hover > tbody > tr:hover { background-color: #f8f9fa; }

.link-cell {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* ── Floating notification ───────────────────────────────────────────────── */

#notify-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 420px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ── RTL ─────────────────────────────────────────────────────────────────── */

[dir="rtl"] #notify-wrapper { right: auto; left: 20px; }
[dir="rtl"] .pull-right      { float: left !important; }
[dir="rtl"] .navbar-right    { float: left !important; }
[dir="rtl"] .text-right      { text-align: left !important; }

/* ── Navbar icons ────────────────────────────────────────────────────────── */

.navbar-icon {
    margin-right: 5px;
    font-size: 13px;
    opacity: .85;
}

/* ── Services page ───────────────────────────────────────────────────────── */

.services-page {
    padding-top: 20px;
    padding-bottom: 40px;
}

.services-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.services-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.services-search-wrap {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .services-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .services-toolbar-left {
        flex-wrap: wrap;
    }

    .services-search-wrap {
        width: 100%;
    }
}

/* Panel */
.services-panel {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    margin-bottom: 0;
}

/* Table columns */
.services-table .col-id      { width: 100px; white-space: nowrap; }
.services-table .col-rate    { width: 130px; white-space: nowrap; }
.services-table .col-minmax  { width: 110px; white-space: nowrap; color: #555; }
.services-table .col-avgtime { width: 140px; white-space: nowrap; color: #555; }
.services-table .col-desc    { font-size: 12px; color: #666; line-height: 1.5; }

/* Table rows */
.services-table > tbody > tr.svc-row > td {
    vertical-align: middle;
    padding: 9px 12px;
    border-top: 1px solid #f0f0f0;
}

.services-table > tbody > tr.svc-row:hover > td {
    background-color: #fafbfc;
}

/* Category header row */
.svc-cat-header > td {
    background-color: #f4f6f9 !important;
    font-size: 13px;
    color: #444;
    padding: 8px 12px !important;
    border-top: 2px solid #dde2e8 !important;
    line-height: 1.4;
}

.svc-cat-header td i {
    margin-right: 5px;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
}

/* Star favorite */
.svc-star {
    display: inline-block;
    cursor: pointer;
    margin-right: 6px;
    color: #ccc;
    font-size: 13px;
    vertical-align: middle;
    transition: color .15s;
}

.svc-star:hover         { color: #f0ad4e; }
.svc-star.active        { color: #f0ad4e; }

.svc-star-guest {
    display: inline-block;
    margin-right: 6px;
    color: #e0e0e0;
    font-size: 13px;
    vertical-align: middle;
    cursor: default;
}

/* Average time info icon */
.svc-avgtime-icon {
    margin-left: 4px;
    color: #bbb;
    cursor: help;
    font-size: 11px;
}

/* No results / empty */
.svc-empty {
    padding: 40px 0;
    font-size: 14px;
}

/* CMS content below table */
.services-page-content {
    margin-top: 24px;
}

/* ── Navbar — auth right block ───────────────────────────────────────────── */

/* Sign Out inline form looks like a nav link */
.navbar-signout-form   { display: inline; }
.navbar-signout-btn    { padding: 15px; color: #777; text-decoration: none; }
.navbar-signout-btn:hover { color: #333; background: none; }

/* Currency dropdown */
.currencies-dropdown   { min-width: 130px; max-height: 280px; overflow-y: auto; }

/* Category icon types in table / dropdown */
.svc-cat-emoji { font-size: 15px; vertical-align: middle; margin-right: 5px; }
.svc-cat-img   { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; margin-right: 5px; }

/* ── Utilities ───────────────────────────────────────────────────────────── */

.cursor-pointer { cursor: pointer; }

/* ── API page ─────────────────────────────────────────────────────────── */

.api-page {
    padding-top: 20px;
    padding-bottom: 40px;
}

.api-info-table td.api-label {
    width: 160px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.api-method-title {
    margin-top: 28px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}

.api-example {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.6;
    max-height: 240px;
    overflow-y: auto;
}

.api-page table td code {
    background: none;
    padding: 0;
    color: #c7254e;
}

.api-optional-badge { font-size: 10px; vertical-align: middle; margin-left: 4px; }

.api-card { margin-bottom: 16px; }
.api-card .panel-heading { background-color: #f8f9fa; }
.api-card .panel-title   { font-size: 15px; font-weight: 600; }
.api-param-col           { width: 200px; white-space: nowrap; }

.api-example-footer {
    background-color: #f8f9fa;
    padding: 12px 16px;
}

.api-example-footer strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.api-example {
    margin-bottom: 0;
}
.text-muted-sm  { font-size: 12px; color: #999; }
