@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #c5a059;
    /* Gold */
    --secondary: #000000;
    /* Pure Black */
    --accent: #ff6b6b;
    --background: #ffffff;
    --surface: #ffffff;
    --text: #000000;
    --text-dim: #334155;
    --glass: rgba(0, 0, 0, 0.05);
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    /* Dasha Colors */
    --md-color: #a855f7;
    /* Purple */
    --ad-color: #f97316;
    /* Orange */
    --pd-color: #22c55e;
    /* Green */
    --sd-color: #ef4444;
    /* Red */
    --gc-color: #3b82f6;
    /* Blue */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(197, 160, 89, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Liquid Container */
.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
}

/* Login Gate */
#loginGate {
    max-width: 400px;
    margin: 10vh auto;
    text-align: center;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.stdInput {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stdInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #e2b76a);
    color: var(--secondary);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

/* Main Calculator Layout */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

/* Results Display */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--primary);
    width: 40%;
}

/* Grid Boards */
.astro-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
}

.grid-cell {
    width: 80px;
    height: 80px;
    background: var(--glass);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 8px;
}

/* Dasha Accordion */
.accordion-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-content {
    display: none;
    padding: 10px 20px 20px;
}

/* Sookshm Styling */
.sookshm-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
    background: #ffffff;
}

.sookshm-row:nth-child(even) {
    background: #f8fafc;
}

.sookshm-row:last-child {
    border-bottom: none;
}

.sookshm-row:hover {
    background: #f1f5f9;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-header {
    border-bottom: 2px solid var(--primary);
    background: #f8fafc;
}

/* Color spans */
.mdColor {
    color: var(--md-color) !important;
    font-weight: bold;
}

.adColor {
    color: var(--ad-color) !important;
    font-weight: bold;
}

.pdColor {
    color: var(--pd-color) !important;
    font-weight: bold;
}

.sdColor {
    color: var(--sd-color) !important;
    font-weight: bold;
}

.gcColor {
    color: var(--gc-color) !important;
    font-weight: bold;
}

/* Responsive adjustments */
.hidden {
    display: none !important;
}

input,
select {
    color: black !important;
}