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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d2d2d;
    background-color: #033d5c;
    min-height: 100vh;
}

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

.header {
    background: #ffffff;
    border-radius: 0 0 15px 15px;
    padding: 20px 40px;
    margin: 0 -20px 30px -20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    flex: 0 0 auto;
}

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

.header-text {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.header-text h1 {
    color: #821874;
    font-size: 2em;
    margin-bottom: 5px;
    font-weight: 700;
}

.header-text p {
    color: #2d2d2d;
    font-size: 1em;
}

.data-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.data-warning h4 {
    margin-bottom: 10px;
    color: #821874;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #821874;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #821874;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-btn.active {
    background: #821874;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 24, 116, 0.4);
}

.panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.panel.active {
    display: block;
}

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

.form-section {
    margin-bottom: 35px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 25px;
    background: #f4f4f4;
}

.form-section h3 {
    color: #821874;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #821874;
    padding-bottom: 10px;
}

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

.question-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d2d2d;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 2px solid #ebebeb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #821874;
    background: #fef5fe;
}

.radio-option input[type="radio"] {
    margin: 0;
    accent-color: #821874;
    cursor: pointer;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ebebeb;
}

.btn {
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: #821874;
    color: #ffffff;
    border-color: #821874;
}

.btn-primary:hover {
    background: rgba(130, 24, 116, 0.9);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 24, 116, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #159eda;
    color: white;
    border-color: #159eda;
}

.btn-secondary:hover {
    background: rgba(21, 158, 218, 0.9);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 158, 218, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: #ffffff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.status-overview {
    background: linear-gradient(135deg, #821874 0%, #159eda 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.status-large {
    font-size: 3em;
    font-weight: 700;
    margin: 20px 0;
}

.progress-ring {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    position: relative;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 15;
}

.progress-ring .background {
    stroke: rgba(255, 255, 255, 0.3);
}

.progress-ring .progress {
    stroke: #7EBEC5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: 700;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ebebeb;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #821874;
}

.tab.active {
    color: #821874;
    border-bottom-color: #821874;
}

.tab-content {
    display: none;
}

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

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

.dimension-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ebebeb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dimension-card h4 {
    color: #821874;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.progress-container {
    position: relative;
    background: #f4f4f4;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    border-radius: 15px;
    transition: width 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.status-novice { background: linear-gradient(45deg, #dc3545, #c82333); }
.status-emerging { background: linear-gradient(45deg, #fd7e14, #e55a00); }
.status-developing { background: linear-gradient(45deg, #ffc107, #e0a800); }
.status-advanced { background: linear-gradient(45deg, #7EBEC5, #159eda); }

.status-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.saved-assessments {
    margin-bottom: 20px;
}

.assessment-item {
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.assessment-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #821874;
}

.assessment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.manual-content {
    max-width: 800px;
    margin: 0 auto;
}

.manual-content h2 {
    color: #821874;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #821874;
}

.manual-content h3 {
    color: #159eda;
    margin: 25px 0 10px 0;
}

.manual-content a {
    color: #159eda;
    text-decoration: none;
}

.manual-content a:hover {
    text-decoration: underline;
}

.manual-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.manual-content table th,
.manual-content table td {
    border: 1px solid #ebebeb;
    padding: 12px;
    text-align: left;
}

.manual-content table th {
    background: #f4f4f4;
    font-weight: 600;
    color: #821874;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #821874;
    box-shadow: 0 0 0 3px rgba(130, 24, 116, 0.1);
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

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

/* AUTH STYLES */
.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    color: #821874;
    background: rgba(130, 24, 116, 0.05);
}

.auth-tab.active {
    color: #821874;
    border-bottom-color: #821874;
}

.auth-form {
    animation: fadeIn 0.3s ease-in;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Progress Indicator */
.progress-indicator {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-indicator-bar {
    height: 8px;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-indicator-fill {
    height: 100%;
    background: linear-gradient(90deg, #821874, #159eda);
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: 50px;
        margin-bottom: 15px;
    }

    .header-text {
        padding: 0;
    }

    .header-text h1 {
        font-size: 1.5em;
    }

    .navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }

    .assessment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .assessment-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .btn {
        margin: 5px;
    }
}

/* Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
    background: linear-gradient(135deg, #821874 0%, #159eda 100%);
    color: white;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ebebeb;
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: #f4f4f4;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table .btn {
    margin: 2px;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    width: 100%;
    gap: 8px;
}

.radio-option {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.radio-option input[type="radio"] {
    margin-right: 5px;
    display: none;
}

.radio-option:hover {
    background: #f8f8f8;
}

.radio-option.selected {
    background: #f0f0f0;
    border-color: #821874;
    font-weight: 600;
}

.radio-option span {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

/* Responsive adjustments for radio buttons */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .radio-option {
        text-align: left;
        padding: 10px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .navigation,
    .form-actions,
    .footer {
        display: none;
    }
    
    .panel {
        box-shadow: none;
    }
}
