/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto 1fr auto; /* Three rows: header, main content, footer */
    min-height: 100vh; /* Ensure body takes at least the full height of the viewport */
}


.container {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Navbar */
.navbar {
    background-color: #007bff;
    padding: 10px;
}

    .navbar a {
        color: white;
        margin: 0 10px;
        text-decoration: none;
    }

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

/* Forms */
form {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    form .form-group {
        margin-bottom: 15px;
    }

    form label {
        font-weight: bold;
    }

    form input[type="text"],
    form input[type="file"],
    form button {
        width: 100%;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ced4da;
    }

    form button {
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

        form button:hover {
            background-color: #0056b3;
        }

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

    table th, table td {
        padding: 10px;
        border: 1px solid #dee2e6;
    }

    table th {
        background-color: #007bff;
        color: white;
    }

    table td {
        background-color: white;
    }

/* Carousel */
.carousel-inner img {
    width: 100%;
    height: auto;
}

.carousel-indicators li {
    background-color: #007bff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #007bff;
}

.footer {
    grid-row: 3; /* Place footer in the third grid row */
    text-align: center;
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: auto; /* Push the footer to the bottom */
}

    .footer img {
        max-width: 200px;
        height: auto;
    }

    .footer h3 {
        margin-top: 10px;
    }

/* Modal */
.modal-content {
    padding: 20px;
}

.modal-footer .btn {
    min-width: 100px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar a {
        display: block;
        margin: 5px 0;
    }

    form input[type="text"],
    form input[type="file"],
    form button {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
    }

        table th, table td {
            white-space: nowrap;
        }
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add some shadow to the cards */
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    margin-bottom: 20px; /* Space between title and button */
}