/* ============================================
   PEEK Professional Theme - Dark Blue
   ============================================ */

:root {
    --peek-primary: #2174ad;
    --peek-secondary: #3a8fc4;
    --peek-accent: #103a5c;
    --peek-dark: #0b1722;
    --peek-light: #eaf6ff;
    --peek-border: #1e3447;

    /* Balancing warm accent (muted copper) — keeps the blue theme from
       reading as all one colour without being too striking. */
    --peek-warm: #b8835e;
    --peek-warm-bright: #d1a07a;

    /* Frosted-glass tokens */
    --glass-bg: rgba(17, 30, 46, 0.55);
    --glass-border: rgba(220, 234, 248, 0.09);
    --glass-edge: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(14px) saturate(125%);

    /* Override Bootstrap dark-theme surfaces to dark wine + kill leftover purple */
    --bs-body-bg: #0a131c;
    --bs-body-color: #e6eef5;
    --bs-emphasis-color: #e6eef5;
    --bs-secondary-color: #8ea4ba;
    --bs-primary: #2174ad;
    --bs-primary-rgb: 33, 116, 173;
    --bs-link-color: #4a9fd4;
    --bs-link-color-rgb: 74, 159, 212;
    --bs-link-hover-color: #2174ad;
    --bs-border-color: #1e3447;
    --bs-emphasis-color-rgb: 244, 230, 234;
}

body {
    background-color: #0a131c !important;
    color: #e6eef5;
}

/* ============================================
   NAVIGATION & HEADER
   ============================================ */

.peek-navbar {
    background: rgba(8, 15, 24, 0.62) !important;
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.peek-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--peek-primary), var(--peek-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.navbar-subtitle {
    font-size: 0.75rem;
    color: #8ea4ba;
    font-weight: 400;
    display: none;
}

@media (min-width: 992px) {
    .navbar-subtitle {
        display: inline;
    }
}

.navbar-nav .nav-link {
    color: #c9d8e6 !important;
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--peek-primary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--peek-primary) !important;
    border-bottom: 2px solid var(--peek-primary);
    padding-bottom: 0.5rem;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.card {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.30), inset 0 1px 0 var(--glass-edge);
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Body-card / panel hover highlight — applies on every tab */
.card:hover,
.panel:hover,
.about-section:hover,
.tool-card:hover,
.team-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(184, 131, 94, 0.30), inset 0 1px 0 var(--glass-edge);
    border-color: rgba(184, 131, 94, 0.35);
}

.card-header {
    /* Muted, translucent burgundy — softens the transition into the body */
    background: linear-gradient(135deg, rgba(31, 90, 140, 0.45), rgba(16, 45, 72, 0.25));
    color: #eaf2fa;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1.5rem;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-weight: 600;
}

.card-header small {
    color: rgba(234, 242, 250, 0.72);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.5rem;
}

.card-body {
    padding: 2rem;
}

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

.form-label {
    font-weight: 600;
    color: #e6eef5;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    background-color: #11202e;
    border: 1.5px solid var(--peek-border);
    color: #e6eef5;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #11202e;
    border-color: var(--peek-primary);
    box-shadow: 0 0 0 3px rgba(33, 116, 173, 0.1);
    color: #e6eef5;
}

.form-control::placeholder {
    color: #6b819a;
}

.form-text {
    color: #8ea4ba;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-control.font-monospace {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--peek-primary), var(--peek-accent));
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 116, 173, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 116, 173, 0.35);
    background: linear-gradient(135deg, var(--peek-accent), var(--peek-primary));
}

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

.btn-outline-primary {
    border: 1.5px solid var(--peek-primary);
    color: var(--peek-primary);
}

.btn-outline-primary:hover {
    background-color: var(--peek-primary);
    border-color: var(--peek-primary);
    color: white;
}

.btn-sm {
    font-size: 0.85rem;
}

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

.table {
    color: #e6eef5;
    margin-bottom: 0;
}

.table th {
    background: linear-gradient(135deg, #162a3c, #11202e);
    color: #e6eef5;
    font-weight: 600;
    border-bottom: 2px solid var(--peek-primary);
    border-color: var(--peek-border);
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    border-color: var(--peek-border);
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(33, 116, 173, 0.05);
}

.table-striped > tbody > tr:hover {
    background-color: rgba(33, 116, 173, 0.1);
}

.table-sm th,
.table-sm td {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.35rem;
    font-size: 0.8em;
}

.bg-success {
    background-color: #10b981 !important;
}

.bg-warning {
    background-color: #f59e0b !important;
    color: #0b1722 !important;
}

.bg-danger {
    background-color: #ef4444 !important;
}

.bg-info {
    background-color: var(--peek-secondary) !important;
}

.text-primary {
    color: var(--peek-primary) !important;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border: 1px solid var(--peek-border);
    border-radius: 0.5rem;
    background-color: rgba(33, 116, 173, 0.1);
    color: #e6eef5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #86efac;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-info {
    background-color: rgba(74, 159, 212, 0.1);
    border-color: rgba(74, 159, 212, 0.3);
    color: #a6cce8;
}

/* ============================================
   SEQUENCES & MONOSPACE
   ============================================ */

.font-monospace {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.sequence-display {
    background: linear-gradient(135deg, #11202e, #0b1722);
    padding: 1.25rem;
    border: 1px solid var(--peek-border);
    border-radius: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    color: #c9d8e6;
}

.seq-cell {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.82rem;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    display: block;
}

.sequence-highlight {
    background: linear-gradient(135deg, var(--peek-primary), var(--peek-accent));
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 0.2rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

.peek-footer {
    background: linear-gradient(135deg, var(--peek-dark) 0%, #11202e 100%);
    border-top: 1px solid var(--peek-border);
    margin-top: 3rem;
}

.peek-footer small {
    color: #8ea4ba;
}

/* ============================================
   UTILITIES
   ============================================ */

.copy-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #8ea4ba;
    border-color: var(--peek-border) !important;
}

.copy-btn:hover {
    transform: translateY(-2px);
    color: var(--peek-primary);
    border-color: var(--peek-primary) !important;
}

.copy-btn.active {
    transform: translateY(-1px);
}

/* ============================================
   SPINNERS
   ============================================ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--peek-border);
    border-radius: 50%;
    border-top-color: var(--peek-primary);
    animation: peek-spin 1s ease-in-out infinite;
}

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

/* ============================================
   HIGHLIGHTS
   ============================================ */

.success-highlight {
    background-color: rgba(16, 185, 129, 0.2);
    color: #86efac;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border-left: 3px solid #10b981;
}

.error-highlight {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border-left: 3px solid #ef4444;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .seq-cell {
        font-size: 0.75rem;
    }

    .card-header {
        padding: 1rem 1.5rem;
    }

    .card-header h2 {
        font-size: 1.25rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
    outline: 2px solid var(--peek-primary);
    outline-offset: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   GLASS PANELS — smooth hover on every body
   ============================================ */

.panel,
.about-section,
.tool-card,
.team-card {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ============================================
   FORM SWITCHES / CHECKBOXES / RADIOS
   Visible when off (no more "disappearing"), warm copper when on
   (the balancing accent), never the default purple.
   ============================================ */

.form-check-input {
    background-color: #131f2a;
    border: 1px solid #2b4257;
}

.form-check-input:checked {
    background-color: var(--peek-warm);
    border-color: var(--peek-warm);
}

.form-check-input:focus {
    border-color: var(--peek-warm-bright);
    box-shadow: 0 0 0 0.2rem rgba(184, 131, 94, 0.30);
    outline: none;
}

/* Switch thumb: warm light when off, white when on — always visible */
.form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23cfdcea'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}

/* Utility buttons use the warm accent (Load example / Clear / Need Help) */
.btn-outline-secondary {
    border: 1.5px solid var(--peek-warm);
    color: var(--peek-warm-bright);
    background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--peek-warm);
    border-color: var(--peek-warm);
    color: #0a131c;
}

/* Info badges read as the warm accent for balance */
.bg-info,
.badge.bg-info {
    background-color: var(--peek-warm) !important;
    color: #1c1009 !important;
}

