/* ===============================
   Global Theme Variables
   =============================== */
:root {
    --bg-grad-1: #0a0a0a;
    --bg-grad-2: #111213;
    --card-bg: #121417;
    --ink: #e5e7eb;
    --muted: #9ca3af;
    --border: #2a2f36;
    --shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    --btn-outline: #3a3f46;
    --chk-accent: #7ec8ff;
    --chk-ring: rgba(126, 200, 255, .35);
}

html[data-theme="light"] {
    --bg-grad-1: #fff;
    --bg-grad-2: #f5f5f5;
    --card-bg: #fff;
    --ink: #111827;
    --muted: #555;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    --btn-outline: #ccc;
}

/* ===============================
   Page Layout
   =============================== */
body {
    background: linear-gradient(135deg, var(--bg-grad-1), var(--bg-grad-2));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--ink);
}

.app-box {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 720px;
    width: 100%;
    border: 1px solid var(--border);
}

@media (max-width: 640px) {
    body {
        padding: 0;
        min-height: 100svh;
    }

    .app-box {
        max-width: none;
        width: 100%;
        min-height: 100svh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: clamp(16px, 3.5vw, 24px);
    }
}

/* ===============================
   Buttons
   =============================== */
.theme-toggle {
    border: 1px solid var(--btn-outline);
    background: transparent;
    color: var(--ink);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clear-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--btn-outline);
    background: transparent;
}

#btnBuyBundle {
    box-shadow: none !important;
}

/* ===============================
   Textarea
   =============================== */
textarea.form-control {
    background: #000;
    color: #fff;
    border: 2px solid #6366f1;
    border-radius: 8px;
    padding: 0.75rem;
}

textarea.form-control:disabled,
textarea.form-control:focus {
    background: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
    border-color: #444 !important;
    cursor: default !important;
}

#user-request[readonly] {
    background: #000;
    color: #fff;
    cursor: text;
    box-shadow: none !important;
}

#user-request[readonly]:focus {
    outline: none;
}

/* ===============================
   Status Dots
   =============================== */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #34d399;
}

.status-dot.offline {
    background: #f87171;
}

/* ===============================
   Results List
   =============================== */
#results .list-group-item {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 12px 16px;
    margin: 0;
}

#results .list-group-item+.list-group-item {
    border-top: 1px solid var(--border) !important;
}

/* disable hover/focus/active highlights */
#results .list-group-item,
#results .list-group-item:hover,
#results .list-group-item:focus,
#results .list-group-item:active,
#results .list-group-item *:hover,
#results .list-group-item *:focus,
#results .list-group-item *:active {
    background: transparent !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* ===============================
   Headphone Link
   =============================== */
#results .headphone-link {
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

/* ===============================
   Checkboxes
   =============================== */
#results .form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--chk-accent);
    border: 2px solid #616a78 !important;
    background: #0f1318 !important;
    box-shadow: none !important;
    transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

#results .form-check-input:hover {
    border-color: var(--chk-accent) !important;
    box-shadow: 0 0 0 .22rem var(--chk-ring) !important;
}

#results .form-check-input:focus-visible {
    outline: none !important;
    border-color: var(--chk-accent) !important;
    box-shadow: 0 0 0 .26rem var(--chk-ring) !important;
}

#results .form-check-input:checked {
    background-color: var(--chk-accent) !important;
    border-color: var(--chk-accent) !important;
}

/* ===============================
   Footer
   =============================== */
.footer-text {
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
}

.footer-text a {
    color: #fff;
    text-decoration: none;
}

.footer-text a:hover {
    font-weight: bold;
    color: #fff;
}

.clear-btn,
.theme-toggle {
    border: none !important;
    box-shadow: none !important;
}

.clear-btn:hover,
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}