/* CODIRA - Main Stylesheet */

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f2544;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #4a90d9;
    --accent-green: #22c55e;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    
    /* Chart colors */
    --color-analitikal: #7030a0;
    --color-struktural: #17375e;
    --color-konseptual: #00b050;
    --color-ekspresif: #ffc000;
    --color-adaptif: #f79646;
    --color-asertif: #c00000;
    --color-directing: #558ed5;
    --color-influencing: #77933c;
    --color-listening: #b3a2c7;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.app-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.app-subtitle {
    color: var(--accent-blue);
    font-size: 14px;
    font-style: italic;
}

.app-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 10px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    background: var(--bg-secondary);
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    margin: -24px -24px 20px -24px;
    text-align: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input, .form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

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

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #3a7fc9;
}

.btn-success {
    background: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background: #1eb354;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: white;
}

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

/* Feature boxes */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.feature-box {
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
}

.feature-box.purple { background: #5b21b6; }
.feature-box.blue { background: #1e40af; }
.feature-box.teal { background: #0f766e; }
.feature-box.brown { background: #78350f; }

.feature-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-info {
    background: rgba(74, 144, 217, 0.2);
    border: 1px solid var(--accent-blue);
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--accent-green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--accent-red);
}

/* Question styles */
.question-header {
    text-align: center;
    margin-bottom: 20px;
}

.question-progress {
    font-size: 14px;
    color: var(--text-secondary);
}

.question-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-blue);
}

.progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: var(--accent-blue);
    transition: width 0.3s;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--accent-blue);
}

.option-btn.selected {
    background: rgba(74, 144, 217, 0.2);
    border-color: var(--accent-blue);
}

.option-label {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: var(--accent-blue);
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    margin-right: 12px;
    font-weight: bold;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.nav-buttons .btn {
    flex: 1;
}

/* Results page */
.result-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--accent-blue);
    color: white;
}

.result-section {
    display: none;
}

.result-section.active {
    display: block;
}

/* Profile info */
.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-chart {
    width: 70px;
    height: 70px;
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-table {
    width: 100%;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-label {
    flex: 1;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    flex: 1;
    text-align: right;
    font-size: 14px;
}

/* Score table */
.score-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.score-table th {
    background: var(--bg-secondary);
    padding: 12px;
    text-align: left;
    font-size: 13px;
}

.score-table td {
    padding: 12px;
    font-size: 14px;
}

/* Score row colors - EXACT from Expo */
.score-row { color: white; }
.score-row.analitikal { background: #FF0000 !important; color: #FFFFFF !important; }
.score-row.struktural { background: #4169E1 !important; color: #FFFFFF !important; }
.score-row.konseptual { background: #FFD700 !important; color: #000000 !important; }
.score-row.ekspresif { background: #00AA00 !important; color: #FFFFFF !important; }
.score-row.adaptif { background: #FF8C00 !important; color: #000000 !important; }
.score-row.asertif { background: #800080 !important; color: #FFFFFF !important; }
.score-row.listening { background: #D3D3D3 !important; color: #000000 !important; }
.score-row.influencing { background: #808080 !important; color: #FFFFFF !important; }
.score-row.directing { background: #000000 !important; color: #FFFFFF !important; }

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
}

/* Chart container */
.chart-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* Action buttons */
.action-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 15px;
    background: var(--bg-primary);
    max-width: 480px;
    margin: 0 auto;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn.pdf { background: #dc2626; }
.action-btn.wa { background: #22c55e; }
.action-btn.email { background: #3b82f6; }

/* Interpretation text */
.interpretation {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.7;
}

.interpretation h4 {
    color: var(--accent-blue);
    margin-bottom: 8px;
}

/* Menu page */
.menu-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.menu-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .features {
        grid-template-columns: 1fr 1fr;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .action-buttons, .nav-buttons {
        display: none !important;
    }
    
    .card {
        background: white;
        border: 1px solid #ddd;
    }
    
    .score-row {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}