/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #00b0ff;
}

.login-container {
    background: transparent;
    backdrop-filter: blur(50px);
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 400px;
}

.logo img {
    margin-bottom: 20px;
    border-radius: 10px;
}

.login-container h2 {
    margin: 10px 0;
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-extra {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-password {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #0056b3;
}

.btn {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Dashboard Greeting Section */
.dash {
    background-color: #ffffff; 
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 100vw;
}
.dash h2{
    color: #0056b3;
    text-transform: none;
    font-size: 18px;
}

/* Navigation Menu */
.menu {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    max-width: 100vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: contents;
}

.menu li {
    margin: 0;
}

.menu a {
    text-decoration: none;
    color: #ffff;
    font-weight: 600;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #808080;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.menu a:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Footer Section */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 10px 20px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 600vw;
}

.footer a {
    text-decoration: none;
    color: #ff4d4d;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #b30000;
}

/* Add Student */
.add-body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.form-container {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.form-container h1 {
    text-align: center;
    color: #007bff;
    margin-bottom: 18px;
    text-transform: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-group2 {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.full-width {
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

.full-width .btn {
    display: inline-block;
    padding: 10px 15px;
    background: #50c878;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.form-container button:hover {
    background: #0b6623;
}

.back-link {
    display: block;
    text-align: center;
    margin: 15px auto; /* Center alignment with auto */
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #007BFF;
    border-radius: 5px;
    max-width: 200px;
    font-weight: bold; /* Optional: Bold text */
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #0056b3;
}
/* View Students Style */
.view-student {
    background: #002651;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 5px;
    position: relative;
}

.view-student img {
    max-width: 60px;
    height: auto;
}

.view-student h2 {
    text-align: center;
    flex: 1;
    font-size: 24px;
    color: #ffff;
}

.view-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f0f0f0;
}

.view-form form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px; /* Reduced max-width for a smaller form */
}

.view-form h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.view-form label {
    font-size: 1rem;
    margin-bottom: 1px;
    color: #555;
    align-self: flex-start;
}

.view-form input[type="text"] {
    width: 100%;  /* Full width of the form */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.view-form button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;  /* Make the button span the full width */
    margin-top: 1px;
}

.view-form button:hover {
    background-color: #45a049;
}


.alertMessage {
    color: red;
    font-size: 1rem;
    margin-top: 10px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
    justify-content: center;
}

.left-card {
    width: 300px;
    margin: 20px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    float: left;
}

.left-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.student-profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
    margin-bottom: 15px;
}

.left-card label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 30%;
    padding: 20px;
}

.card h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-row a {
    flex: 1;
    color: #007BFF;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
}

.info-row label {
    flex: 2;
    color: #333;
    text-align: left;
    font-size: 13px;
}
/* receipt styles*/
.receipt-body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.receipt-container {
    align-items: center;
    width: 700px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
}

.receipt-header img {
    width: 80px;
    height: auto;
}

.receipt-header h1 {
    font-size: 24px;
    margin: 5px 0;
}

.receipt-header p {
    font-size: 14px;
    color: #555;
}

.receipt-title {
    text-align: center;
    font-size: 20px;
    margin: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.info-section {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-section span {
    display: inline-block;
    width: 150px;
    font-weight: bold;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.payment-table th, .payment-table td {
    border: 1px solid #000;
    text-align: left;
    padding: 8px;
    font-size: 14px;
}

.payment-table th {
    background-color: #f1f1f1;
    color: #000;
    font-weight: bold;
}

.receipt-footer {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}

.receipt-footer p {
    margin: 5px 0;
}

.receipt-footer .stamp {
    font-size: 16px;
    font-weight: bold;
}

.receipt-footer a {
    text-decoration: none;
    color: #007bff;
}

/* deleting records */
.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    background-color: #ffff;
}

.delete-form {
    width: 100%;
    max-width: 400px;
    background: #f4f4f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.delete-form h2 {
    margin-bottom: 20px;
    color: #555;
}

.delete-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

.delete-form input,
.delete-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.delete-form button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.delete-form button:hover {
    background-color: #0056b3;
}

.alert {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* process payment */
.payment-form {
    width: 100%;
    max-width: 400px;
    background: #f4f4f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.payment-form h2 {
    margin-bottom: 20px;
    color: #555;
}

.payment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

.payment-form input,
.payment-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.payment-form button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.payment-form button:hover {
    background-color: #0056b3;
}

.success {
    color: green;
    font-size: 14px;
    margin-top: 10px;
}

/* update styles */
.update-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    background-color: #f7f9fc;
}

/* Container for the form */
.update-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 650px;
    padding: 30px;
    box-sizing: border-box;
}

/* Heading */
.heading {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

/* Alert message styles */
.alert-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Form Layout */
.update-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Select Dropdown */
.form-select {
    margin-bottom: 20px;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.select-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    cursor: pointer;
}

/* Button Group */
.form-buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.term-btn {
    padding: 12px 25px;
    background-color: #007bff;
    color: #ffffff;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.term-btn:hover {
    background-color: #0056b3;
}

/* database view */
.class-view-container {
    margin-top: 20px;
    max-width: 900px;
    margin: 10px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.class-view-container h2 {
    text-align: center;
    color: #333;
}

.class-view-form-group {
    margin-bottom: 15px;
}

.class-view-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.class-view-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.class-view-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.class-view-table th, .class-view-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.class-view-table th {
    background-color: #007bff;
    color: white;
}

.class-view-stats {
    margin-top: 20px;
    font-size: 1.2rem;
}

.class-view-stats span {
    font-weight: bold;
}

.class-view-btn {
    display: block;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    margin: 10px auto;
    cursor: pointer;
}

.class-view-btn:hover {
    background-color: #0056b3;
}
/* print receipt styles */
.search-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-form h2 {
    font-size: 1.8rem;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.search-form label {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.search-form input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
}

.search-form button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #0056b3;
}

/* Receipt Results Section */
.receipt-results {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.receipt-results h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 1rem;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

table button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #007bff;
}

table button:hover {
    color: #0056b3;
}


/* edit page styles */
.edit-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.edit-container h2 {
    text-align: center;
    color: #333;
}

.edit-form {
    margin-bottom: 15px;
}

.edit-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.edit-form input,
.edit-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.edit-form input:focus,
.edit-form select:focus {
    border-color: #007bff;
    outline: none;
}

.edit-btn {
    display: block;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    margin: 10px auto;
    cursor: pointer;
}

.edit-btn {
    background-color: #0056b3;
}

.edit-container .alert {
    color: red;
    background-color: #f8d7da;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.edit-container.success {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    background-color: #d4edda;
    color: #155724;
}

.btn-primary {
    background-color: #28a745;
}

.btn-secondary {
    background-color: #6c757d;
}
/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .left-card, .card {
        width: 80%;
        margin: 10px 0;
    }
    .update-container{
        padding: 20px;
    }
    .term-btn{
        width: 70%;
        margin-bottom: 10px;
    }
    .form-buttons{
        flex-direction: column;
        align-items: center;
    }
    .class-view-container{
        padding: 15px;
        max-width: 100%;
    }
    .class-view-container h2{
        font-size: 1.5rem;
    }
    .class-view-form-group label,
    .class-view-form-group select {
        font-size: 0.9rem;
    }

    .class-view-table th,
    .class-view-table td {
        padding: 6px;
        font-size: 0.9rem;
    }

    .class-view-stats {
        font-size: 1rem;
    }

    .class-view-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .menu {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .left-card, .card {
        width: 90%;
        margin: 10px 0;
    }

    .view-form form, .search-form form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    /* For mobile phones */
    .class-view-container {
        padding: 10px;
    }

    .class-view-table {
        font-size: 0.8rem;
    }

    .class-view-table th,
    .class-view-table td {
        padding: 4px;
    }

    .class-view-container h2 {
        font-size: 1.2rem;
    }

    .class-view-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
/* Added in the v2 rebuild */
.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 1px dashed #999;
    color: #666;
    font-size: 14px;
    margin: 0 auto;
}
