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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #F6F9FC;
    color: #0A2540;
    line-height: 1.6;
}

#navbar {
    background-color: #FFFFFF;
    color: #0A2540;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.09);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    margin: 0 auto;
    padding: 0 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0A2540;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-actions button {
    background-color: #635BFF;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
}

.nav-actions button:hover {
    background-color: #0A2540;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-actions .btn-contact {
    background: transparent !important;
    color: #635BFF;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    box-shadow: none !important;
}

.nav-actions .btn-contact:hover {
    color: #0A2540;
    background: transparent !important;
    transform: none;
    box-shadow: none !important;
}

.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

.auth-container {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-container h2 {
    margin-bottom: 2rem;
    color: #0A2540;
    font-size: 1.75rem;
    font-weight: 600;
}

#contactPage .auth-container h2 {
    text-align: center;
}

#contactPage .auth-container p {
    text-align: left;
}

.faq-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E3E8EE;
}

.faq-section:last-child {
    border-bottom: none;
}

.faq-question {
    color: #0A2540;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: #425466;
    line-height: 1.6;
    margin: 0;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-container input,
.auth-container select {
    padding: 0.75rem 1rem;
    border: 1px solid #E3E8EE;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #FFFFFF;
    color: #0A2540;
    transition: all 0.15s ease;
}

.auth-container input:focus,
.auth-container select:focus {
    outline: none;
    border-color: #635BFF;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.auth-container button {
    background-color: #635BFF;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
}

.auth-container button:hover {
    background-color: #0A2540;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-container p {
    margin-top: 1.5rem;
    text-align: center;
    color: #425466;
    font-size: 0.9375rem;
}

.auth-container a {
    color: #635BFF;
    text-decoration: none;
    font-weight: 500;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem;
}

.admin-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #425466;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    color: #635BFF;
}

.admin-tab.active {
    color: #635BFF;
    border-bottom-color: #635BFF;
    font-weight: 600;
}

.customers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.customers-table th,
.customers-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E6E6E6;
}

.customers-table th {
    background: #F6F9FC;
    font-weight: 600;
    color: #0A2540;
}

.customers-table tr:hover {
    background: #FAFBFC;
}

.purchase-list {
    font-size: 0.9rem;
    color: #425466;
}

.purchase-item {
    padding: 0.25rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.dashboard-header h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: #0A2540;
    letter-spacing: -0.02em;
}

.dashboard-header button {
    background-color: #635BFF;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
}

.dashboard-header button:hover {
    background-color: #0A2540;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
    border-color: #635BFF;
}

.course-card h3 {
    color: #0A2540;
    margin-bottom: 0.625rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.course-card p {
    color: #425466;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.course-card .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    background-color: #F6F9FC;
    color: #425466;
}

.course-card .status.published {
    background-color: #D8F8E7;
    color: #0E6245;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.35);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: #FFFFFF;
    margin: 3% auto;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: #425466;
}

.close:hover {
    color: #0A2540;
}

#courseContent h2 {
    color: #0A2540;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

#courseContent p {
    color: #425466;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.lesson {
    background: #FFFFFF;
    padding: 1.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(50, 50, 93, 0.09);
}

.lesson h3 {
    color: #0A2540;
    margin-bottom: 0.625rem;
    font-weight: 600;
}

.quiz-container {
    background: #FFFFFF;
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.question {
    margin-bottom: 1.75rem;
}

.question h4 {
    margin-bottom: 0.75rem;
    color: #0A2540;
    font-weight: 600;
}

.options {
    margin-left: 1rem;
}

.options label {
    display: block;
    margin: 0.625rem 0;
    cursor: pointer;
    color: #0A2540;
}

button {
    background-color: #635BFF;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
}

button:hover {
    background-color: #0A2540;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08);
}

button.secondary {
    background-color: #FFFFFF;
    color: #0A2540;
    border: 1px solid #E3E8EE;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.09);
}

button.secondary:hover {
    background-color: #F6F9FC;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.15);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E3E8EE;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 1rem;
    background-color: #FFFFFF;
    color: #0A2540;
    transition: all 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #635BFF;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

textarea {
    min-height: 100px;
    font-family: inherit;
}

.error {
    color: #CD5542;
    padding: 0.875rem 1rem;
    background-color: #FFF4F1;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    border-left: 3px solid #CD5542;
}

.success {
    color: #0E6245;
    padding: 0.875rem 1rem;
    background-color: #D8F8E7;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    border-left: 3px solid #0E6245;
}

/* Public Marketplace Styles */
.public-nav {
    background-color: #FFFFFF;
    color: #0A2540;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.09);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marketplace-container {
    margin: 0 auto;
    padding: 3rem 2%;
}

.hero {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(180deg, #635BFF 0%, #0A2540 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 4rem;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

.course-detail {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.course-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #425466;
    margin: 1rem 0 2rem 0;
}

.price-section {
    background: #F6F9FC;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #E3E8EE;
}

.price-section h3 {
    font-size: 2rem;
    color: #0A2540;
    font-weight: 600;
}

.purchase-section {
    margin-top: 2rem;
}

.purchase-section p {
    margin: 1rem 0;
    color: #425466;
    line-height: 1.6;
}

.btn-primary {
    background-color: #635BFF;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
}

.btn-primary:hover {
    background-color: #0A2540;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #0A2540;
    border: 1px solid #E3E8EE;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.09);
}

.btn-secondary:hover {
    background-color: #F6F9FC;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: #635BFF;
    border: 1px solid #635BFF;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-outline:hover {
    background-color: #635BFF;
    color: white;
    transform: translateY(-1px);
}

/* Quiz Styles */
.quiz-header {
    margin-bottom: 2rem;
}

.quiz-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0A2540;
}

.quiz-progress {
    margin-top: 1.25rem;
}

.quiz-progress p {
    font-size: 0.9375rem;
    color: #425466;
    margin-bottom: 0.625rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #E3E8EE;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #635BFF 0%, #0A2540 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.quiz-question {
    margin: 2rem 0;
}

.quiz-question h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #0A2540;
    font-weight: 600;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border: 1.5px solid #E3E8EE;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: #FFFFFF;
}

.quiz-option:hover {
    border-color: #635BFF;
    background-color: #F6F9FC;
    box-shadow: 0 2px 4px rgba(50, 50, 93, 0.09);
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.125rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #635BFF;
}

.option-letter {
    font-weight: 600;
    color: #0A2540;
    margin-right: 0.75rem;
    font-size: 0.9375rem;
}

.option-text {
    flex: 1;
    line-height: 1.5;
    color: #0A2540;
    font-size: 0.9375rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #E3E8EE;
}

.quiz-navigation button {
    flex: 1;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
}

.quiz-navigation button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.quiz-navigation button:disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
}

.quiz-review {
    padding: 1rem 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 0.625rem;
    margin: 2rem 0;
}

.review-question {
    padding: 0.75rem;
    border: 1.5px solid #E3E8EE;
    border-radius: 6px;
    background-color: #FFFFFF;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s ease;
    color: #0A2540;
    text-align: center;
    font-size: 0.9375rem;
}

.review-question:hover {
    border-color: #635BFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(50, 50, 93, 0.09);
}

.review-question.answered {
    background-color: #635BFF;
    color: white;
    border-color: #635BFF;
}

.review-question.unanswered {
    background-color: #FFF;
    border-color: #CD5542;
    color: #CD5542;
}

.quiz-results {
    padding: 1rem 0;
}

.score-display {
    text-align: center;
    margin: 2.5rem 0;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #635BFF, #0A2540);
    color: white;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.score-number {
    font-size: 3.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.score-label {
    font-size: 1rem;
    opacity: 0.95;
    margin-top: 0.25rem;
    font-weight: 500;
}

.results-list {
    margin-top: 2.5rem;
}

.result-item {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(50, 50, 93, 0.09);
}

.result-item.correct {
    background-color: #D8F8E7;
    border-left-color: #0E6245;
}

.result-item.incorrect {
    background-color: #FFF4F1;
    border-left-color: #CD5542;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.result-number {
    font-weight: 600;
    font-size: 1rem;
    color: #0A2540;
}

.result-icon {
    font-size: 1.25rem;
    font-weight: bold;
}

.result-item.correct .result-icon {
    color: #0E6245;
}

.result-item.incorrect .result-icon {
    color: #CD5542;
}

.result-question {
    font-weight: 500;
    margin: 0.5rem 0;
    color: #0A2540;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.result-answer {
    font-size: 0.875rem;
    color: #425466;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Footer Styles */
#footer {
    background-color: #FFFFFF;
    color: #0A2540;
    padding: 2rem 0;
    box-shadow: 0 -1px 3px rgba(50, 50, 93, 0.09);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
}

.footer-container {
    margin: 0 auto;
    padding: 0 2%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container p {
    margin: 0;
    color: #425466;
    font-size: 0.9375rem;
}


.auth-container textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #E3E8EE;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #FFFFFF;
    color: #0A2540;
    transition: all 0.15s ease;
}

.auth-container textarea:focus {
    outline: none;
    border-color: #635BFF;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}
