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 */
.form-control,
.form-select {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 6px; /* Reduced padding */
    border-radius: 5px;
    font-size: 14px; /* Smaller font */
    margin-bottom: 10px;
    width: 100%; /* Ensure full width */
}

/* Label styles */
label {
    font-size: 14px; /* Smaller font size for labels */
    margin-bottom: 5px;
    display: block;
}

/* Button styles */
.btn {
    padding: 8px 12px; /* Reduced padding */
    border-radius: 8px;
    font-size: 14px; /* Smaller font */
    width: auto; /* Allow buttons to fit content */
    margin: 5px; /* Reduced margin */
}

.btn-success {
    background-color: #27ae60;
    border: none;
}

.btn-secondary {
    background-color: #34495e;
    border: none;
}

.btn:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

/* Form group layout */
.form-group {
    margin-bottom: 15px; /* Reduced spacing */
}

/* Button group for Save and Back */
.button-group {
    display: flex;
    justify-content: center; /* Center-align buttons */
    gap: 10px; /* Space between buttons */
    margin-bottom: 20px;
}

/* Align Translation Cache and Clear Cache */
.cache-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between select and button */
}

/* Alert styles */
.alert {
    margin-bottom: 15px;
    font-size: 14px;
}

/* 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,
    .form-select {
        padding: 5px;
        font-size: 12px;
    }
    label {
        font-size: 12px;
    }
    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .button-group {
        flex-direction: column;
        gap: 8px;
    }
    .cache-group {
        flex-direction: column;
        align-items: stretch;
    }
    .footer {
        font-size: 12px;
        padding: 8px 0;
    }
}