/* START OF FILE public/clock-time-numerology/styles.css */
/* Self-contained stylesheet — no dependency on any other page's CSS, but the
   palette + layout below is copied from public/bnn/bnn-styles.css so this page
   matches the same light lavender/purple/gold dashboard look (left-panel inputs,
   right-panel tabbed results) instead of a dark theme. */

:root {
    --color-primary: #4A148C;
    --color-primary-dark: #2E0057;
    --color-secondary: #CE93D8;
    --color-accent: #FFD700;
    --color-background: #F3E5F5;
    --color-surface: #FFFFFF;
    --color-surface-alt: #FAF0FF;
    --color-border: #CE93D8;
    --color-divider: #EDE7F6;
    --color-text-dark: #1A0033;
    --color-text-medium: #4A148C;
    --color-text-light: #7B1FA2;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background-color: var(--color-background);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--color-text-medium);
}

/* ─── Minimal page header (this page's own — not injected by another page's JS) ─── */
.ctn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.ctn-logo { color: var(--color-primary); font-weight: 700; font-size: 16px; text-decoration: none; }
.ctn-back { color: var(--color-text-light); text-decoration: none; font-size: 14px; }
.ctn-back:hover { color: var(--color-primary); }

/* ─── Dashboard Layout (copied from bnn-styles.css) ─────────────────────── */
.astrology-dashboard {
    max-width: 1600px;
    margin: 25px auto;
    padding: 25px;
    background-color: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(74, 20, 140, 0.12);
}

.dashboard-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.left-panel {
    flex: 1;
    min-width: 380px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 88vh;
    overflow-y: auto;
    padding-right: 8px;
}
.left-panel::-webkit-scrollbar { width: 8px; }
.left-panel::-webkit-scrollbar-track { background: var(--color-surface); }
.left-panel::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
    border: 2px solid var(--color-surface);
}

h1 {
    color: var(--color-primary);
    font-size: 30px;
    margin: 0 0 4px 0;
    text-align: center;
    letter-spacing: 1px;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0 0 20px 0;
    font-style: italic;
}

.birth-chart-form {
    background: var(--color-surface);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.1);
    border: 1px solid var(--color-border);
}

.form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.form-section { margin-bottom: 3px; flex: 1; }
.form-section h3 { font-size: 13px; color: var(--color-text-dark); margin: 0 0 4px 0; font-weight: 600; }

input[type="number"], input[type="text"] {
    width: 100%; padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px; font-size: 14px;
    background-color: var(--color-surface-alt);
    color: var(--color-text-dark);
}
input[type="number"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(74, 20, 140, 0.15);
}

.generate-btn {
    background: var(--color-primary);
    color: white; border: none;
    padding: 10px 20px; border-radius: 4px;
    cursor: pointer; font-size: 14px;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 8px;
}
.generate-btn:hover { background: var(--color-primary-dark); }
.generate-btn.secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.generate-btn.secondary:hover { background: var(--color-surface-alt); }

.ctn-tip {
    color: var(--color-text-light);
    font-size: 0.85em;
    line-height: 1.5;
    background: var(--color-surface-alt);
    border-left: 3px solid var(--color-accent);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0 0 12px;
}

/* ─── Right Panel ────────────────────────────────────────────────────────── */
.right-panel {
    flex: 2.5;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 88vh;
    overflow-y: auto;
    padding-right: 15px;
}
.right-panel::-webkit-scrollbar { width: 8px; }
.right-panel::-webkit-scrollbar-track { background: var(--color-surface); }
.right-panel::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
    border: 2px solid var(--color-surface);
}

.rp-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 4px;
    background: var(--color-surface);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.rp-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.rp-tab:hover { color: var(--color-primary); background: var(--color-surface-alt); }
.rp-tab.active {
    color: var(--color-primary);
    font-weight: 700;
    border-bottom-color: var(--color-primary);
    background: var(--color-surface);
}
.rp-tab-content { display: none; flex-direction: column; gap: 20px; }
.rp-tab-content.active { display: flex; }

@media (max-width: 700px) {
    .rp-tab { font-size: 12px; padding: 10px 8px; }
}

.data-section {
    background: var(--color-surface);
    padding: 18px; border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 6px rgba(74, 20, 140, 0.06);
}
.data-section h2 {
    color: var(--color-primary); font-size: 17px;
    margin: 0 0 12px 0; padding-bottom: 8px;
    border-bottom: 1px solid var(--color-divider);
}

/* ─── Collapsible Items (copied pattern from bnn-styles.css) ────────────── */
.ai-collapsible-item {
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(74, 20, 140, 0.08);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-bottom: 10px;
}
.ai-collapsible-item:last-child { margin-bottom: 0; }

.collapsible-trigger {
    background-color: var(--color-divider);
    color: var(--color-text-dark);
    cursor: pointer; padding: 12px 16px;
    width: 100%; border: none; text-align: left;
    font-size: 15px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
}
.ai-collapsible-item.active .collapsible-trigger {
    background-color: #EDE7F6;
    color: var(--color-primary);
}
.collapsible-trigger .icon { transition: transform 0.3s ease-out; }
.ai-collapsible-item.active .collapsible-trigger .icon { transform: rotate(180deg); }

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 0;
}
.collapsible-content > div { padding: 14px 16px; }

/* ─── This page's own components (recolored to the light theme) ────────── */

.ctn-verdict {
    font-size: 2em;
    font-weight: 800;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: 1px;
}
.ctn-verdict.yes { color: #16a34a; }
.ctn-verdict.no { color: #dc2626; }
.ctn-verdict.neutral { color: #b45309; }

.ctn-reasoning {
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}
.ctn-reasoning strong { color: var(--color-primary); }

.ctn-nature-card {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--color-divider);
}
.ctn-nature-card h3 { margin: 0 0 8px; color: var(--color-primary); font-size: 1.05em; }

.ctn-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ctn-tag {
    background: var(--color-divider);
    color: var(--color-primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.ctn-placeholder { color: var(--color-text-light); font-style: italic; text-align: center; padding: 8px 0; }

/* Swatch grid (Watch Dial Colors) */
.ctn-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.ctn-swatch {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 6px;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
}
.ctn-swatch:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.ctn-swatch.active { border-color: var(--color-primary); background: var(--color-divider); box-shadow: 0 0 0 2px rgba(74,20,140,0.15); }
.ctn-swatch-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.15); }
.ctn-swatch-label { font-size: 0.78em; color: var(--color-text-dark); }

/* Friend/Enemy table */
.ctn-fe-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.ctn-fe-table th, .ctn-fe-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--color-divider); }
.ctn-fe-table th { background: var(--color-primary); color: #fff; }
.ctn-fe-table td.benefic { color: #16a34a; font-weight: 600; }
.ctn-fe-table td.malefic { color: #dc2626; font-weight: 600; }

/* Notes list */
.ctn-notes { padding-left: 20px; line-height: 1.8; color: var(--color-text-dark); margin: 0; }
.ctn-notes li { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 900px) {
    .dashboard-container { flex-direction: column; }
    .left-panel { max-width: 100%; min-width: unset; max-height: none; overflow-y: visible; padding-right: 0; }
    .right-panel { max-height: none; overflow-y: visible; padding-right: 0; }
}
/* END OF FILE public/clock-time-numerology/styles.css */
