* {
    box-sizing: border-box;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
    --primary-color: #00923f;
    --primary-light: #5eda83;
    --primary-dark: #02902d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --success-color: #03c03c;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --disabled-color: #015d1d;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


body {
  margin-bottom: 60px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 400px;
    padding: 2rem 2rem 3.5rem;
    /*    padding: 40px;*/
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    background-image: url('../images/logoyct.png');
    background-size: contain;
    height: 4rem;
    width: 4rem;
    margin: 0 auto 1.2rem;
    text-align: center;
    /*    border-radius: 50%;*/
    /*    background-color: var(--primary-color);*/
}

.logo-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}

h1 {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 500;
}

.input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--dark-gray);
        font-size: 14px;
        font-weight: 500;
    }

    .input-group input {
        width: 100%;
        padding: 15px;
        border: 1px solid var(--medium-gray);
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s;
    }

        .input-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(3, 192, 60, 0.2);
        }

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-login:hover {
        background-color: var(--primary-dark);
    }

    .btn-login:active {
        transform: translateY(1px);
    }

    .btn-login.disabled {
        background-color: var(--disabled-color);
        cursor: default;
    }

        .btn-login.disabled:hover {
            background-color: var(--disabled-color);
        }

        .btn-login.disabled:active {
            transform: none;
        }

.field-error {
    font-size: 0.8rem;
    font-style: italic;
    color: red;
}

.button-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .button-wrap {
        flex-direction: column;
    }
}

.button-wrap button,
.button-wrap .guide-tooltip {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .login-container {
        width: 100%;
        border-radius: 0;
        padding: 30px 20px;
    }
}

.logout-text {
/*    opacity: 0;*/
}

.logout-btn {
    width: 2.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
}

.logout-btn:hover {
    width: 6rem;
}

.logout-btn:hover .logout-text {
    opacity: 1;
    transition: all 0.3s ease;
}

.error-alert {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
    animation: authErrorFadeIn 0.4s ease-in;
}

@keyframes authErrorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 480px) {
    .login-container {
        width: 100%;
        border-radius: 0;
        padding: 30px 20px;
    }
}

/* Login page css - END */

/* Nav styles */

.navigation {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 768px) {
    .navigation {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    color: #666;
    text-decoration: none;
}

.nav-btn:hover {
    background: #f5f5f5;
}

.nav-btn.active {
    background: #0f4c09;
    color: white;
}

/* Nav styles - END */

/* Biodata page */

.content-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
}

@media screen and (max-width: 480px) {
    .content-header {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
        margin-bottom: 3rem;
    }
}

.biodata-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-section {
    text-align: center;
/*    border: 1px solid;*/
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 3rem;
    margin-bottom: 1rem;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.profile-id {
    color: #666;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 768px) {
    .biodata-content {
        grid-template-columns: 1fr;
    }

    .details-grid {
        gap: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .biodata-content {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-value {
    color: #333;
    font-weight: 600;
}

/* Biodata page - END */

/* stats */


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
}

    .stat-card:nth-child(odd) {
        border-left-color: #0f4c09;
    }

    .stat-card:nth-child(even) {
        border-left-color: #820000;
    }

    .stat-card h3 {
        font-size: 0.875rem;
        color: #666;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .stat-card .value {
        font-size: 2rem;
        font-weight: bold;
        color: #333;
    }

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* stats - END */

.search-bar {
    position: relative;
    margin-bottom: 1rem;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.student-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-value {
    color: #333;
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.courses-table th,
.courses-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

.courses-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.export-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.export-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #f8f9fa;
}

.summary-box {
    background: rgba(15, 76, 9, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0f4c09;
    margin-top: 1rem;
}


@media print {
    body * {
        visibility: hidden;
    }

    .print-section,
    .print-section * {
        visibility: visible;
    }

    .print-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .header,
    .navigation,
    .btn,
    .fab,
    .modal-content {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* PAYMENTS page */


.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #0f4c09;
    box-shadow: 0 0 0 3px rgba(15, 76, 9, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.125rem;
    padding-top: 0.75rem;
/*    border-top: 1px solid #ddd;*/
}

/* END Payments page */

/*modal start*/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-top {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 2px solid #0f4c09;
    position: relative;
}

.modal-heading {
    font-size: 1.75rem;
    font-weight: bold;
    color: #0f4c09;
    margin-bottom: 0.5rem;
}

.modal-subheading {
    color: #666;
    font-size: 0.9rem;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #820000;
}

.modal-content-section {
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

    .form-grid.two-column {
        grid-template-columns: 1fr 1fr;
    }

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.required {
    color: #820000;
    font-size: 1rem;
}

.form-input,
.form-select {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
}

    .form-input:focus,
    .form-select:focus {
        outline: none;
        border-color: #0f4c09;
        box-shadow: 0 0 0 3px rgba(15, 76, 9, 0.1);
    }

    .form-input::placeholder {
        color: #999;
    }

    .form-input.error {
        border-color: #820000;
    }

.error-message {
    color: #820000;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-input.error + .error-message {
    display: block;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    border: 2px dashed #0f4c09;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: rgba(15, 76, 9, 0.02);
    transition: all 0.3s;
    cursor: pointer;
}

    .file-upload-wrapper:hover {
        background: rgba(15, 76, 9, 0.05);
        border-color: #0d3f07;
    }

    .file-upload-wrapper.has-file {
        border-style: solid;
        background: rgba(15, 76, 9, 0.1);
    }

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    color: #0f4c09;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-upload-hint {
    color: #666;
    font-size: 0.8rem;
}

.file-preview {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

    .file-preview.active {
        display: flex;
    }

.preview-image {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid #0f4c09;
}

.preview-info {
    flex: 1;
}

.preview-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.preview-size {
    color: #666;
    font-size: 0.8rem;
}

.remove-file-btn {
    background: #820000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

    .remove-file-btn:hover {
        background: #6b0000;
    }

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    padding: 0.25rem;
}

    .password-toggle:hover {
        color: #0f4c09;
    }

.password-strength {
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #820000;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-bar.strong {
    width: 100%;
    background: #0f4c09;
}

.password-hint {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0f4c09;
}

.radio-label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.help-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 1rem 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #ddd;
}

    .btn-secondary:hover {
        background: #f5f5f5;
        border-color: #ccc;
    }

.btn-primary {
    background: #0f4c09;
    color: white;
}

    .btn-primary:hover {
        background: #0d3f07;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(15, 76, 9, 0.3);
    }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-top {
        padding: 1.5rem;
    }

    .modal-content-section {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .form-grid.two-column {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #0f4c09;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #0d3f07;
}

/*modal end*/

/* COMING SOON */

.coming-soon-full {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 76, 9, 0.05) 0%, rgba(130, 0, 0, 0.05) 100%);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .coming-soon-full::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(15, 76, 9, 0.1) 0%, transparent 70%);
        animation: pulse-full 3s ease-in-out infinite;
    }

@keyframes pulse-full {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.coming-soon-full-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.coming-soon-full-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.coming-soon-full-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0f4c09;
    margin-bottom: 1rem;
}

.coming-soon-full-description {
    color: #888;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* COMING SOON - end */