/* Ayurveda Assessment Main Styles */
:root {
    --vata-color: #7BC4C4;
    --pitta-color: #B93A32;
    --kapha-color: #6F7D4E;
    --primary-brown: #5a3921;
    --secondary-brown: #8c6d46;
    --light-bg: #f5f0e6;
    --medium-bg: #e9dfd1;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--medium-bg) 100%);
    color: var(--primary-brown);
    line-height: 1.6;
    min-height: 100vh;
    padding: 10px;
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Header */
.app-header {
    background: linear-gradient(to right, var(--primary-brown), var(--secondary-brown));
    color: white;
    padding: 25px;
    text-align: center;
}

.logo-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.site-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    background: white;
    padding: 5px;
    object-fit: contain;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.app-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 5px;
}

.app-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Card Components */
.assessment-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 25px;
    overflow: hidden;
    border: 1px solid #eee;
}

.card-header {
    background: var(--medium-bg);
    padding: 20px;
    border-bottom: 2px solid #d4b996;
}

.card-title {
    color: var(--primary-brown);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-subtitle {
    color: var(--secondary-brown);
    font-size: 0.95rem;
}

.card-content {
    padding: 25px;
}

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-brown);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-brown);
}

/* Buttons */
.btn {
    background: var(--secondary-brown);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    background: var(--primary-brown);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(90, 57, 33, 0.2);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Results & Scores */
.results-container { padding: 20px; }
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.score-card {
    text-align: center;
    padding: 25px 15px;
    border-radius: 10px;
    border: 3px solid;
}

.vata-card { border-color: var(--vata-color); background: rgba(123, 196, 196, 0.08); }
.pitta-card { border-color: var(--pitta-color); background: rgba(185, 58, 50, 0.08); }
.kapha-card { border-color: var(--kapha-color); background: rgba(111, 125, 78, 0.08); }

.score-value {
    font-size: 3rem;
    font-weight: 800;
    margin: 15px 0;
}

/* Table for Questions */
.question-table-container {
    overflow-x: auto;
    margin: 25px 0;
}

.question-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.question-table th {
    background: var(--medium-bg);
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 3px solid #ddd;
}

.question-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.dosha-column { border-left: 4px solid; }
.vata-col { border-color: var(--vata-color); }
.pitta-col { border-color: var(--pitta-color); }
.kapha-col { border-color: var(--kapha-color); }

/* Utility */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--secondary-brown);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(140, 109, 70, 0.2);
    border-top-color: var(--secondary-brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Print Styles */
@media print {
    .no-print, .app-nav, .btn { display: none !important; }
    body { background: white !important; }
    .app-container { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* Responsive */
@media (max-width: 768px) {
    .app-title { font-size: 2rem; }
    .app-container { margin: 5px; }
    .assessment-card { margin: 15px 10px; }
    .card-content { padding: 20px 15px; }
    .score-grid { grid-template-columns: 1fr; }
}