body {
    background-color: #2e2e2e;
    color: #e0e0e0;
}

.card {
    background-color: #333;
    border: 1px solid #444;
}

.card-header {
    background-color: #444;
    color: #fff;
}

.card-body {
    background-color: #555;
}

.btn-primary, .btn-success, .btn-secondary, .btn-danger .btn-info {
    background-color: #007bff;
    border: none;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-danger {
    background-color: #dc3545;
}

input, select, button {
    color: #fff;
    background-color: #555;
    border: 1px solid #444;
}

input::placeholder {
    color: #bbb;
}

td img {
    width: 20px; /* Reduced width */
    height: 20px; /* Reduced height to maintain square shape */
    object-fit: cover; /* Ensure the image fills the square without distortion */
    display: block; /* Center the image within the cell */
    margin: 0 auto; /* Center horizontally */
    border-radius: 4px; /* Optional: Add rounded corners */
}

@supports (aspect-ratio: 1) {
    td img {
        aspect-ratio: 1; /* Modern browsers: Enforce a 1:1 aspect ratio */
        width: 100px; /* Allow width to adjust dynamically */
        height: 100px; /* Allow height to adjust dynamically */
    }
}

table {
    background-color: #444;
    color: #fff;
}

table th, table td {
    border: 1px solid #555;
}

.modal-content {
    background-color: #333;
    color: #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.modal-header {
    background-color: #444;
    border-bottom: 2px solid #555;
}

.modal-header .close {
    color: #e0e0e0;
    font-size: 1.5rem;
}

.modal-body {
    background-color: #555;
    padding: 20px;
    border-radius: 5px;
}

.modal-body .form-row {
    margin-bottom: 15px;
}

.form-control, .btn-primary, .btn-success, .btn-secondary .btn-danger .btn-info {
    border-radius: 4px;
    background-color: #444;
    border: 1px solid #555;
}

.modal-body .form-control {
    padding: 0px; /* Adjusts the padding inside the input fields */
    padding-left: 5px;
}

.form-control:focus {
    background-color: #555;
    color: #fff;
    border-color: #777;
}

.modal-footer {
    background-color: #444;
    border-top: 2px solid #555;
}

.modal-footer .btn {
    padding: 10px 15px;
    font-size: 16px;
}

.form-group input, .form-group select {
    border-radius: 4px;
    padding: 10px;
    background-color: #444;
    border: 1px solid #555;
}

.form-group input::placeholder,
.form-group select {
    color: #bbb;
}

.modal-title {
    font-size: 1.5rem;
    color: #e0e0e0;
}

.modal-dialog {
    max-width: 800px;
}

.form-row input[type="file"] {
    padding: 5px;
}

.modal-body input[type="file"] {
    background-color: #444;
    border: 1px solid #555;
}

.btn-block {
    width: 100%;
    padding: 15px;
}

.btn-block:hover {
    background-color: #0056b3;
}

.col-md-4 {
    padding: 5px;
}

.col-md-4 input,
.col-md-4 select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
}

.col-md-4 button {
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    border-radius: 5px;
}

.col-md-4 button:hover {
    background-color: #218838;
}

.text {
    color: #e0e0e0;
}

.list {
    color: #e0e0e0;
    background-color: #444;
}

.manage-buttons {
    color: #e0e0e0;
    background-color: #555;
    border: 1px solid #444;
    text-decoration: none;
}

.modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.btn-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-control {
    max-width: 300px;
}

/* Styles for the image preview modal */
.image-preview-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* Center horizontally */
}

.image-preview-content {
    height: 100vh;
    border-radius: 0;
    background-color: #000; /* Optional: Set a black background for better contrast */
}

.image-preview-body {
    height: 100%; /* Use the full height of the modal */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.image-preview-body img {
    width: 100%; /* Ensure the image fills the modal width */
    height: 100%; /* Ensure the image fills the modal height */
    object-fit: contain; /* Maintain aspect ratio without distortion */
    display: block;
    margin: auto;
}

.container {
    max-width: 95%; /* Increase the container width to 95% of the viewport */
    margin: 0 auto; /* Center the container */
}

.table-responsive {
    overflow-x: auto; /* Ensure horizontal scrolling if the table overflows */
}

.table {
    width: 100%; /* Ensure the table takes up the full width of the container */
}

@media (max-width: 768px) {
    .form-control {
        max-width: 100%;
    }

    .btn-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-wrapper .btn {
        margin-bottom: 10px;
    }

    .modal-dialog {
        max-width: 100%;
        margin: 10px;
    }
}