:root {
    color-scheme: dark;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #101522;
    color: #f6f8ff;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(90deg, #1b2a4a, #0f1c33);
    padding: 1.4rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

header .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

header .user-session {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

header .user-chip {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    font-size: 0.9rem;
}

header .admin-link {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s ease, transform 0.15s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

header .admin-link:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

header .logout-button {
    appearance: none;
    border: 1px solid rgba(248, 250, 252, 0.35);
    background: transparent;
    color: #f8fafc;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

header .logout-button:hover {
    background: rgba(248, 250, 252, 0.85);
    color: #0f172a;
}

header h1 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
}

main {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(260px, 320px) 1fr;
}

section {
    background: rgba(20, 28, 46, 0.85);
    border-radius: 16px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

section>*+* {
    margin-top: 0.5rem;
}

.hidden {
    display: none !important;
}

.chart-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 300px;
}

.chart-card canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.75);
    pointer-events: none;
    z-index: 1;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.metrics-grid .status-card {
    align-items: flex-start;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f8fafc;
    text-align: center;
    text-wrap: balance;
}

.learning-card {
    padding: 1rem 1.25rem;
    gap: 0.65rem;
}

.learning-card .metric-value {
    font-size: 1.2rem;
}

.learning-reason {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
    line-height: 1.45;
}

.momentum-details {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.65rem;
}

.momentum-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.momentum-item .metric-label {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.momentum-item .metric-value {
    font-size: 1rem;
    font-weight: 600;
}

.setup-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.setup-card {
    padding: 1.3rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(23, 34, 56, 0.95), rgba(18, 26, 44, 0.92));
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.setup-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    position: relative;
}

.history-link {
    margin-left: auto;
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.history-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.learning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.setup-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.setup-subtitle {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.75);
}

.setup-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setup-summary {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.5;
    margin: 0;
}

.setup-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}

.setup-chip {
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    position: relative;
}

.setup-chip strong {
    font-size: 1rem;
    color: #38bdf8;
    font-weight: 600;
}

.setup-trailing {
    font-size: 0.88rem;
    color: rgba(148, 163, 184, 0.85);
}

.controls form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

#symbol-search {
    margin-bottom: 0.25rem;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
}

select,
input[type="text"],
button {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(16, 24, 44, 0.9);
    color: inherit;
    font-size: 0.95rem;
}

button {
    background: #1f8eed;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: rgba(125, 211, 252, 0.85);
}

.loading .spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(125, 211, 252, 0.2);
    border-top-color: #7dd3fc;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(31, 142, 237, 0.25);
}

.status-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 0.5rem;
}

.status-card {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(15, 21, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-card span.value {
    font-size: 1.1rem;
    font-weight: 600;
}

.external-link {
    color: #7dd3fc;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.external-link:hover {
    text-decoration: underline;
}

.external-link[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
    text-decoration: none;
    cursor: default;
}

pre {
    margin: 0;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

#flash {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: #7dd3fc;
}

@media (max-width: 960px) {
    main {
        grid-template-columns: 1fr;
    }

    .setup-row {
        grid-template-columns: 1fr;
    }
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.95));
}

.auth-card {
    max-width: 420px;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 2.25rem 2.5rem;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.auth-card h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #f8fafc;
    text-align: center;
}

.auth-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.8);
    text-align: center;
}

.auth-error {
    background: rgba(254, 100, 100, 0.12);
    border: 1px solid rgba(254, 100, 100, 0.4);
    color: #fecaca;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.9);
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.8);
    padding: 0.75rem 0.9rem;
    color: inherit;
    font-size: 1rem;
}

.auth-form button {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #f8fafc;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.35);
}

.auth-hint {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.75);
}

/* Watchlist Tabs */
.watchlist-tabs {
    margin-bottom: 1rem;
}

.tabs-header {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    background: rgba(15, 28, 51, 0.5);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

.tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.tab:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

.tab.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.2));
    border-color: rgba(56, 189, 248, 0.5);
    font-weight: 600;
}

.tab-label {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.tab-close {
    appearance: none;
    border: none;
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.tab-close:hover {
    background: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}

.tab-add {
    justify-content: center;
    align-items: center;
    appearance: none;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.05);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
}

.tab-add:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.6);
    color: #e2e8f0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #1b2a4a;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: #f8fafc;
}

.modal-close {
    appearance: none;
    border: none;
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close:hover {
    background: rgba(248, 113, 113, 0.4);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    background: rgba(15, 28, 51, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    color: #f8fafc;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #f8fafc;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.3);
}

/* History Modal Styles */
.history-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.history-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(15, 21, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(15, 21, 34, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
}

.history-item-time {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.75);
}

.history-item-symbol {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    color: #60a5fa;
}

.history-item-profile {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.history-item-body {
    margin-top: 0.75rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.5;
}

.history-item-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.history-level {
    padding: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
}

.history-level-label {
    display: block;
    color: rgba(148, 163, 184, 0.75);
    margin-bottom: 0.25rem;
}

.history-level-value {
    display: block;
    font-weight: 600;
    color: #e2e8f0;
}

.history-item-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: flex-end;
}

.tradingview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2962ff 0%, #1e53e5 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tradingview-link:hover {
    background: linear-gradient(135deg, #1e53e5 0%, #1543c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(148, 163, 184, 0.75);
    font-style: italic;
}

/* ========================================
   REGISTER PAGE STYLES
   ======================================== */

.register-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.register-container h2 {
    text-align: center;
    color: #3b82f6;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-register:active {
    transform: translateY(0);
}

.login-link,
.register-link {
    text-align: center;
    margin-top: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.login-link a,
.register-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover,
.register-link a:hover {
    text-decoration: underline;
}

.flash-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.flash-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.flash-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.password-requirements {
    margin-top: 8px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.password-requirements ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.password-requirements li {
    margin-bottom: 3px;
}

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */

.admin-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
}

.admin-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.admin-header h2 {
    color: #3b82f6;
    margin: 0;
}

.btn-back {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.section {
    margin-bottom: 40px;
}

.section h3 {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 18px;
}

.pending-users-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.pending-users-table th {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.pending-users-table td {
    padding: 12px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.pending-users-table tr:last-child td {
    border-bottom: none;
}

.pending-users-table tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.2s;
}

.btn-approve {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-approve:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.btn-reject {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Copy Price Button Styles
   ======================================== */
.copy-price-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.copy-price-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

.copy-price-btn:active {
    transform: scale(0.95);
}

.copy-price-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

/* Copy button in setup chips */
.setup-chip .copy-price-btn {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 12px;
}

/* Copy button in history levels */
.history-level .copy-price-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.history-level {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   Status Badges for Setups
   ======================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-closed {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Closed setup styling */
.history-item.setup-closed {
    opacity: 0.7;
    background: rgba(15, 23, 42, 0.3);
}

.history-item.setup-closed .history-item-title,
.history-item.setup-closed .history-level-value {
    color: #94a3b8;
}
