:root {
    --famcare-primary: #e83e8c;
    --famcare-secondary: #d91a72;
    --famcare-light: #f8d7da;
    --famcare-border: #e83e8c;
}

.famcare-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.famcare-header {
    background: linear-gradient(135deg, var(--famcare-primary), var(--famcare-secondary));
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.famcare-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.famcare-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.mode-selector {
    display: flex;
    background: white;
    border-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--famcare-border);
}

.mode-btn {
    flex: 1;
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--famcare-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: var(--famcare-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.patient-info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--famcare-border);
}

.patient-info-card h3 {
    color: var(--famcare-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--famcare-primary);
}

.item-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.item-number {
    background: var(--famcare-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.likert-option:hover {
    background: var(--famcare-light);
}

.likert-option.selected {
    background: var(--famcare-primary);
    color: white;
}

.likert-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.likert-label {
    font-size: 0.8rem;
    text-align: center;
}

.progress-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--famcare-border);
}

.progress-bar {
    background: linear-gradient(90deg, var(--famcare-primary), var(--famcare-secondary));
    transition: width 0.3s ease;
}

.results-container {
    background: linear-gradient(135deg, var(--famcare-primary), var(--famcare-secondary));
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    display: none;
}

.results-container.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.score-display {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.score-interpretation {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.score-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--famcare-primary), var(--famcare-secondary));
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 62, 140, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--famcare-primary);
    color: var(--famcare-primary);
    background: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--famcare-primary);
    color: white;
    transform: translateY(-2px);
}

.template-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid var(--famcare-border);
}

@media (max-width: 768px) {
    .likert-scale {
        flex-direction: column;
    }
    .mode-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
    .action-buttons {
        flex-direction: column;
    }
}
