* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

.t-center {
    text-align: center;
}

form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6b7a3d;
    box-shadow: 0 0 0 3px rgba(107, 122, 61, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

#wordCount {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

small {
    color: #666;
}

.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

.breadcrumbs {
    list-style: none;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.breadcrumbs li {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breadcrumbs li:hover {
    background-color: #dee2e6;
}

.breadcrumbs li.active {
    font-weight: bold;
    color: #fff;
    background-color: #6b7a3d;
}

.circle-progress-wrapper {
    display: none;
    padding: 0 20px;
    margin-bottom: 30px;
}

.circle-progress {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 20px;
    height: 3px;
    background-color: #6b7a3d;
    transition: width 0.3s ease;
    width: 0%;
    z-index: 1;
}

.circles-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-label {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    max-width: 70px;
}

.step-circle.active + .step-label {
    color: #6b7a3d;
    font-weight: 600;
}

.step-circle.completed + .step-label {
    color: #28a745;
    font-weight: 600;
}

.step-circle:hover {
    transform: scale(1.1);
    border-color: #6b7a3d;
}

.step-circle.active {
    background-color: #6b7a3d;
    color: #fff;
    border-color: #6b7a3d;
    box-shadow: 0 0 0 8px rgba(107, 122, 61, 0.15);
}

.step-circle.completed {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#nextBtn {
    background-color: #6b7a3d;
    color: white;
}

#nextBtn:hover {
    background-color: #45433e;
}

#prevBtn {
    background-color: #6c757d;
    color: white;
}

#prevBtn:hover {
    background-color: #545b62;
}

#submitBtn {
    background-color: #28a745;
    color: white;
}

#submitBtn:hover {
    background-color: #218838;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

.form-navigation button {
    flex: 1;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-data {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-left: 4px solid #6b7a3d;
    border-radius: 4px;
}

.review-data strong {
    color: #333;
    font-weight: 600;
}

#reviewContent {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    form {
        padding: 15px;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .form-navigation button {
        width: 100%;
    }
    
    .breadcrumbs {
        flex-direction: column;
        gap: 8px;
    }
    
    .breadcrumbs li {
        text-align: center;
        width: 100%;
    }
    
    .circle-progress-wrapper {
        display: none;
    }
    
    .breadcrumbs {
        display: flex;
    }
    footer .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    footer .footer-section h3 {
        font-size: 1rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .school-button {
        flex-direction: column;
        text-align: center;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th, table td {
        padding: 8px;
    }
}
@media (min-width: 769px) {
    .circle-progress-wrapper {
        display: block;
    }
    
    .breadcrumbs {
        display: none;
    }
}


@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .auth-container {
        margin: 20px auto;
        padding: 10px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .auth-tabs {
        margin-bottom: 20px;
    }
    
    .auth-tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.school-selection {
    display: grid;
    gap: 15px;
    max-width: 512px;
    margin: 20px auto;
}

.school-button {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.school-button:hover {
    border-color: #6b7a3d;
    box-shadow: 0 4px 12px rgba(107, 122, 61, 0.15);
}

.school-button.selected {
    border-color: #6b7a3d;
    background-color: #f0f7ff;
}

.school-logo {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
}

.school-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.school-abbr {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.school-desc {
    font-size: 0.85rem;
    color: #555;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

table thead, table tbody {
    display: table;
    width: 100%;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.add-row-btn {
    background-color: #17a2b8;
    color: white;
    padding: 8px 15px;
    margin-bottom: 15px;
}

.add-row-btn:hover {
    background-color: #138496;
}

.remove-row {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.remove-row:hover {
    background-color: #c82333;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-info {
    background-color: #e7f3ff;
    border-left: 4px solid #6b7a3d;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.auth-info p {
    margin: 5px 0;
    color: #004085;
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.auth-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #6b7a3d;
    border-bottom-color: #6b7a3d;
}

.auth-tab:hover {
    color: #6b7a3d;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #6b7a3d;
    box-shadow: 0 0 0 3px rgba(107, 122, 61, 0.1);
}

.auth-form input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.auth-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #6b7a3d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button:hover {
    background-color: #45433e;
}

.auth-button:active {
    transform: scale(0.98);
}

.form-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.form-link a {
    color: #6b7a3d;
    cursor: pointer;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.success-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.success-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

.success-container h2 {
    color: #111;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.success-container p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.reference-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    margin: 25px 0;
}

.reference-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6b7a3d;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-top: 10px;
}

.success-message {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
}

.success-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .success-container {
        padding: 30px 20px;
    }
    
    .success-container h2 {
        font-size: 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .reference-number {
        font-size: 1.2rem;
    }
}

footer {
    background-color: white;
    color: #111;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 3px solid #6b7a3d;
}

footer .footer-container {
    max-width: 768px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

footer .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #6b7a3d;
}

footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

footer p {
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

footer a {
    color: #6b7a3d;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .contact-info {
    font-size: 0.85rem;
}

footer .contact-info div {
    margin-bottom: 10px;
}

footer .contact-info strong {
    margin-top: 8px;
}

/* profile */
.profile-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.left-pane {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.profile-picture {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    font-size: 3rem;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.profile-info-group {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.profile-info-group:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    color: #333;
    word-break: break-word;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active { background-color: #d4edda; color: #155724; }
.status-leave { background-color: #fff3cd; color: #856404; }
.status-withdrawn { background-color: #f8d7da; color: #721c24; }
.status-graduated { background-color: #d1ecf1; color: #0c5460; }

.right-pane {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.3rem;
    color: #6b7a3d;
    margin-bottom: 20px;
    margin-top: 30px;
    border-bottom: 2px solid #6b7a3d;
    padding-bottom: 10px;
}

.section-title:first-of-type {
    margin-top: 0;
}

.academic-years {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.year-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #6b7a3d;
}

.year-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.year-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.documents-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 2px dashed #ddd;
}

.documents-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.document-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.document-item {
    background: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.document-item:hover {
    border-color: #6b7a3d;
    background-color: #f0f7ff;
}

.document-icon {
    font-size: 2rem;
}

.document-label {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.school-info {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #6b7a3d;
    margin-bottom: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.info-row-full {
    margin-bottom: 15px;
}

.info-field {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.field-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.gpa-display {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #6b7a3d;
    text-align: center;
    margin-bottom: 20px;
}

.gpa-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.gpa-value {
    font-size: 2rem;
    color: #6b7a3d;
    font-weight: bold;
}

.courses-container {
    margin-bottom: 20px;
}

.course-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
    margin-bottom: 15px;
}

.course-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.course-number {
    background: #6b7a3d;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    width: fit-content;
}

.course-title {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.course-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 0.95rem;
    color: #333;
}

.course-section {
    margin-bottom: 15px;
}

.course-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7a3d;
    margin-bottom: 10px;
}

.subsection {
    background: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e9ecef;
}

.subsection-name {
    font-weight: 500;
    color: #333;
}

.subsection-score {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.add-btn {
    background-color: #17a2b8;
    color: white;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background-color: #138496;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.modal-close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.image-modal-content {
    background: white;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
    }

    .left-pane {
        position: static;
    }

    .academic-years {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .course-header {
        grid-template-columns: 1fr;
    }
}