body {
    background-color: #2c3e50;
    color: white;
    font-family: 'Tahoma', sans-serif;
    overflow: hidden; /* Disable scrolling on the entire page */
    height: 100vh; /* Ensure body takes full viewport height */
    margin: 0; /* Remove default margin */
}

.container {
    max-width: 800px; /* Reduced width for a more compact layout */
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh; /* Ensure container takes full viewport height */
    overflow: hidden; /* Disable scrolling on container */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push footer to bottom */
}

h2 {
    font-size: 1.5rem; /* Smaller heading */
    margin-bottom: 15px;
    text-align: center; /* Center-align the title */
}

/* Form styles */
.input-group {
    margin-bottom: 15px;
}

.form-control {
    background-color: #fcfdfd;
    color: white;
    border: none;
    padding: 6px; /* Reduced padding */
    border-radius: 5px;
    font-size: 14px; /* Smaller font */
}

/* Table styles */
.table {
    background-color: #ecf0f1;
    color: black;
    border: 1px solid #ccc;
    width: 100%;
    table-layout: fixed;
}

.table th,
.table td {
    padding: 8px; /* Reduced padding */
    font-size: 14px; /* Smaller font */
    word-wrap: break-word;
}

.table th {
    background-color: #34495e;
    color: white;
}

/* Make table scrollable */
.table-responsive {
    max-height: 60vh; /* Adjusted height */
    overflow-y: auto;
    display: block;
}

.table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Button styles */
.btn {
    padding: 5px 10px; /* Smaller padding for buttons */
    border-radius: 5px;
    font-size: 12px; /* Smaller font */
    width: auto; /* Fit content */
}

.btn-primary {
    background-color: #2980b9;
    border: none;
}

.btn-secondary {
    background-color: #34495e;
    border: none;
}

.btn-info {
    background-color: #2980b9;
    border: none;
    color: white; /* White text for download button */
}

.btn-danger {
    background-color: #e74c3c;
    border: none;
    color: white;
}

/* Button group for Back */
.button-group {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Footer styles */
.footer {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #ecf0f1;
    background-color: #34495e;
    border-top: 1px solid #ecf0f1;
    margin-top: auto;
}

@media (max-width: 767px) {
    .container {
        padding: 15px;
    }
    h2 {
        font-size: 1.2rem;
    }
    .form-control {
        padding: 5px;
        font-size: 12px;
    }
    .table th,
    .table td {
        font-size: 12px;
        padding: 5px;
    }
    .btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    .table-responsive {
        max-height: 50vh; /* Adjusted for mobile */
    }
    .footer {
        font-size: 12px;
        padding: 8px 0;
    }
}