/* ============================================
   HoroscopeDoc Dashboard Styles
   ============================================ */

/* Layout */
.dash-layout {
    display: flex;
    min-height: 100vh;
}

.dash-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-light);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.dash-sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.dash-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
}

.dash-nav {
    flex: 1;
    padding: 0 12px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.dash-nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
}

.dash-nav-item.active {
    background: rgba(212, 168, 83, 0.08);
    color: var(--gold);
}

.dash-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.dash-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dim), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
}

.dash-user-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.dash-user-plan {
    font-size: 0.72rem;
    color: var(--gold);
}

.dash-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
    min-height: 100vh;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.dash-page-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
}

.dash-page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Auth Screens */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 40% at 50% 30%, rgba(212, 168, 83, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 70% 70%, rgba(74, 108, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gold-dim), var(--gold-light), var(--gold-dim));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    font-size: 2.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.auth-logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gold);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-deep);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239896a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 0.75rem;
    color: #e74c3c;
    margin-top: 6px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-deep);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--gold);
    font-weight: 500;
    cursor: pointer;
}

.auth-switch a:hover {
    color: var(--gold-light);
}

/* Profile Builder */
.profile-builder {
    max-width: 700px;
    margin: 0 auto;
}

.profile-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.profile-step-dot {
    width: 32px;
    height: 4px;
    border-radius: 4px;
    background: var(--border-light);
    transition: var(--transition);
}

.profile-step-dot.active {
    background: var(--gold);
    width: 48px;
}

.profile-step-dot.done {
    background: var(--gold-dim);
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 24px;
}

.profile-section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.profile-section-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.location-entry {
    background: var(--bg-deep);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
}

.location-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.location-entry-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gold);
}

.btn-remove {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
}

.btn-remove:hover { color: #e74c3c; }

.btn-add-location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    font-family: inherit;
    transition: var(--transition);
}

.btn-add-location:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

/* Dashboard Cards */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.dash-card:hover {
    border-color: var(--border);
}

.dash-card-span2 {
    grid-column: span 2;
}

.dash-card-span3 {
    grid-column: span 3;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
}

.dash-card-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Accuracy Meter */
.accuracy-meter {
    text-align: center;
    padding: 20px 0;
}

.accuracy-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    position: relative;
}

.accuracy-circle svg {
    transform: rotate(-90deg);
}

.accuracy-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.accuracy-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--gold-light);
    line-height: 1;
}

.accuracy-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Dasa Timeline */
.dasa-timeline {
    position: relative;
    padding: 0;
}

.dasa-period {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

.dasa-period:last-child { border-bottom: none; }

.dasa-planet-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.dasa-planet-badge.current {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.2);
}

.dasa-info {
    flex: 1;
}

.dasa-name {
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.dasa-dates {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dasa-bar-container {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.dasa-bar {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dim), var(--gold));
    border-radius: 3px;
    transition: width 1s ease;
}

.dasa-current-tag {
    font-size: 0.68rem;
    padding: 2px 8px;
    background: rgba(212, 168, 83, 0.12);
    color: var(--gold);
    border-radius: 4px;
    margin-left: 8px;
}

/* Validation Cards */
.validation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.validation-item {
    background: var(--bg-deep);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.validation-question {
    font-size: 0.92rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.validation-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.validation-actions {
    display: flex;
    gap: 10px;
}

.btn-yes, .btn-no {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    transition: var(--transition);
}

.btn-yes:hover {
    border-color: #27ae60;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
}

.btn-no:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.btn-yes.selected {
    border-color: #27ae60;
    color: white;
    background: #27ae60;
}

.btn-no.selected {
    border-color: #e74c3c;
    color: white;
    background: #e74c3c;
}

/* Daily Horoscope */
.daily-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 168, 83, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.daily-date {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.daily-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.daily-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 24px;
    text-align: left;
}

.daily-aspects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.daily-aspect {
    text-align: center;
    padding: 16px;
    background: var(--bg-deep);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.daily-aspect-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.daily-aspect-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.daily-aspect-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Predictions */
.prediction-year {
    background: var(--bg-deep);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.prediction-year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.prediction-year-header:hover {
    background: rgba(255,255,255,0.02);
}

.prediction-year-label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
}

.prediction-year-dasa {
    font-size: 0.75rem;
    color: var(--gold);
}

.prediction-year-body {
    padding: 0 20px 20px;
    display: none;
}

.prediction-year.open .prediction-year-body {
    display: block;
}

.prediction-category {
    margin-bottom: 16px;
}

.prediction-category-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.prediction-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Loading States */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

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

.loading-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 16px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 20, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-cosmos-icon {
    font-size: 3rem;
    color: var(--gold);
    animation: slowRotate 3s linear infinite;
    margin-bottom: 24px;
}

/* Chart Visualization */
.chart-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
    position: relative;
}

.chart-container canvas {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-card-span3 {
        grid-column: span 2;
    }
    .daily-aspects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dash-sidebar {
        transform: translateX(-100%);
    }
    .dash-sidebar.open {
        transform: translateX(0);
    }
    .dash-main {
        margin-left: 0;
        padding: 20px;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .dash-card-span2, .dash-card-span3 {
        grid-column: span 1;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .daily-aspects {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-section {
        padding: 24px;
    }
    .auth-card {
        padding: 32px 24px;
    }
}
