:root {
    --purple: #6C1CD2;
    --gold: #F9A825;
    --white: #FFFFFF;
    --black: #000000;
    --light-blue: #2D9CDB;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-700: #495057;
    --gray-900: #212529;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-900);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), #8B3DE8);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A16B0, var(--purple));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 28, 210, 0.3);
}

.btn-secondary {
    background: var(--gold);
    color: var(--white);
}

.btn-secondary:hover {
    background: #E09620;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 168, 37, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #FFB938);
    color: var(--black);
    font-weight: 700;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #E89720, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(249, 168, 37, 0.5);
}

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

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

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-warning {
    background: var(--gold);
    color: var(--white);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.btn-danger {
    background: #DC3545;
    color: var(--white);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 2px solid var(--gray-200);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.brand-name {
    font-size: 24px;
    color: var(--purple);
    font-weight: 700;
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple) 0%, #8B3DE8 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    padding: 80px 20px;
    background: var(--gray-100);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--purple);
    margin-bottom: 15px;
}

.landing-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple) 0%, #8B3DE8 100%);
    padding: 40px 20px;
}

.auth-container {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    height: 60px;
    margin-bottom: 20px;
}

.auth-header h1 {
    color: var(--purple);
    margin-bottom: 10px;
    font-size: 28px;
}

.auth-header p {
    color: var(--gray-700);
    font-size: 14px;
}

.auth-form {
    margin-bottom: 30px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-900);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.form-footer {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-link {
    color: var(--purple);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-700);
    font-size: 14px;
}

.auth-footer a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.dashboard-page {
    min-height: 100vh;
    background: var(--gray-100);
}

.dashboard-header {
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-logo {
    height: 50px;
}

.header-left .brand-name {
    font-size: 20px;
    color: var(--purple);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    font-weight: 600;
    color: var(--gray-900);
}

.dashboard-content {
    padding: 60px 20px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-section h1 {
    font-size: 42px;
    color: var(--purple);
    margin-bottom: 10px;
}

.tagline {
    font-size: 20px;
    color: var(--gold);
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.dashboard-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-card.card-primary {
    border-top: 4px solid var(--purple);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dashboard-card h2 {
    font-size: 24px;
    color: var(--purple);
    margin-bottom: 15px;
}

.dashboard-card p {
    color: var(--gray-700);
    margin-bottom: 25px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-700);
}

.empty-state-subtext {
    font-size: 14px;
    color: var(--gray-700);
    margin-top: 10px;
}

.info-section {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    color: var(--purple);
    margin-bottom: 25px;
    font-size: 22px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 13px;
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: var(--gray-900);
}

.admin-header {
    margin-bottom: 40px;
}

.admin-header h1 {
    color: var(--purple);
    font-size: 36px;
    margin-bottom: 10px;
}

.admin-header p {
    color: var(--gray-700);
}

.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--purple);
    color: var(--white);
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: var(--gray-100);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin {
    background: var(--gold);
    color: var(--white);
}

.badge-user {
    background: var(--light-blue);
    color: var(--white);
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

.questionnaire-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.questionnaire-header {
    text-align: center;
    margin-bottom: 40px;
}

.questionnaire-header h1 {
    color: var(--purple);
    font-size: 36px;
    margin-bottom: 15px;
}

.questionnaire-header p {
    color: var(--gray-700);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.section-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-link {
    background: var(--gray-100);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--purple);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.section-link:hover {
    background: var(--purple);
    color: var(--white);
}

.question-section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--purple) 0%, #8B3DE8 100%);
    border-radius: 12px;
    color: var(--white);
}

.section-number {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.section-header h2 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 5px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.question-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--purple);
}

.question-number {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.question-label {
    display: block;
    font-weight: 500;
    color: var(--gray-900);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.question-card textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.question-card textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--gray-100);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.radio-option:hover {
    background: var(--gray-200);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.radio-option input[type="radio"]:checked + span,
.radio-option:has(input[type="radio"]:checked) {
    background: rgba(108, 28, 210, 0.1);
}

.form-submit {
    text-align: center;
    padding: 40px 0;
    border-top: 2px solid var(--gray-200);
    margin-top: 40px;
}

.btn-lg {
    padding: 16px 48px;
    font-size: 18px;
}

.submit-note {
    color: var(--gray-700);
    font-size: 14px;
    margin-top: 15px;
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    color: var(--purple);
    font-size: 36px;
    margin-bottom: 10px;
}

.results-date {
    color: var(--gray-700);
    font-size: 14px;
}

.overall-score-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple) 0%, #8B3DE8 100%);
    color: var(--white);
}

.score-circle.score-strong {
    background: linear-gradient(135deg, #28A745 0%, #34CE57 100%);
}

.score-circle.score-working {
    background: linear-gradient(135deg, var(--gold) 0%, #FFC107 100%);
}

.score-circle.score-inconsistent {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
}

.score-circle.score-at-risk {
    background: linear-gradient(135deg, #DC3545 0%, #F1556C 100%);
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 16px;
    opacity: 0.8;
}

.overall-info {
    text-align: left;
}

.overall-info h2 {
    color: var(--gray-900);
    font-size: 20px;
    margin-bottom: 10px;
}

.band-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.band-strong {
    background: #D4EDDA;
    color: #155724;
}

.band-working {
    background: #FFF3CD;
    color: #856404;
}

.band-inconsistent {
    background: #FFE5CC;
    color: #B35600;
}

.band-at-risk {
    background: #F8D7DA;
    color: #721C24;
}

.band-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.band-summary h3 {
    color: var(--purple);
    margin-bottom: 15px;
}

.band-summary p {
    color: var(--gray-700);
    line-height: 1.7;
}

.context-snapshot {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--gold);
}

.context-snapshot h2 {
    color: var(--purple);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.context-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.context-item-full {
    grid-column: 1 / -1;
}

.context-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.context-value {
    color: var(--gray-900);
    font-size: 1rem;
}

.context-text {
    background: var(--gray-100);
    padding: 15px;
    border-radius: 8px;
    margin-top: 5px;
    line-height: 1.6;
}

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

.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C1CD2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(108, 28, 210, 0.1);
}

.form-select:hover {
    border-color: var(--purple);
}

.pillars-section {
    margin-bottom: 40px;
}

.pillars-section h2 {
    color: var(--purple);
    margin-bottom: 25px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pillar-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pillar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.pillar-header h3 {
    font-size: 16px;
    color: var(--gray-900);
}

.pillar-tier {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.tier-strong {
    background: #D4EDDA;
    color: #155724;
}

.tier-developing---solid {
    background: #D1ECF1;
    color: #0C5460;
}

.tier-uneven---emerging {
    background: #FFF3CD;
    color: #856404;
}

.tier-at-risk {
    background: #F8D7DA;
    color: #721C24;
}

.pillar-score-bar {
    height: 10px;
    background: var(--gray-200);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--purple) 0%, #8B3DE8 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.pillar-score-text {
    margin-bottom: 15px;
}

.pillar-score-text .score-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--purple);
}

.pillar-score-text .score-max {
    font-size: 14px;
    color: var(--gray-700);
}

.pillar-description {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}

.next-steps-section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.next-steps-section h2 {
    color: var(--purple);
    margin-bottom: 20px;
}

.next-steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.next-steps-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.next-steps-list li:last-child {
    border-bottom: none;
}

.cta-text {
    color: var(--gray-700);
    margin-top: 20px;
}

.cta-text a {
    color: var(--purple);
    font-weight: 600;
}

.cta-section {
    background: linear-gradient(135deg, var(--purple), #8B3DE8);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-gold {
    font-size: 1.1rem;
    padding: 16px 40px;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.assessment-history {
    margin-top: 20px;
}

.assessment-table {
    width: 100%;
    border-collapse: collapse;
}

.assessment-table th,
.assessment-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.assessment-table th {
    background: var(--gray-100);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
}

.assessment-table td {
    font-size: 14px;
}

.score-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.score-badge.high {
    background: #D4EDDA;
    color: #155724;
}

.score-badge.medium-high {
    background: #FFF3CD;
    color: #856404;
}

.score-badge.medium {
    background: #FFE5CC;
    color: #B35600;
}

.score-badge.low {
    background: #F8D7DA;
    color: #721C24;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 900px;
    }
    
    .overall-score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .overall-info {
        text-align: center;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
}
