body {
    background: linear-gradient(135deg, #4b91cd, #194b91);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container, .login-container, .dashboard-container, .info-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin: auto;
}

.login-container { max-width: 400px; }
.info-container { max-width: 600px; }
.dashboard-container { max-width: 800px; }
.admin-users-container { max-width: 1000px; }

.main-title {
    color: #194b91;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 350;
    text-align: center;
}

p {
    color: #555;
    margin-bottom: 20px;
}

.btn {
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
}

.btn-primary { background-color: #194b91; color: white; }
.btn-primary:hover { background-color: #113063; }

.btn-secondary { background-color: #6c757d; color: white; }
.btn-secondary:hover { background-color: #5a6268; }

.btn-danger { background-color: #dc3545; color: white; }
.btn-danger:hover { background-color: #c82333; }

.btn-success { background-color: #28a745; color: white; }
.btn-success:hover { background-color: #218838; }

.btn-warning { background-color: #ffc107; color: white; }
.btn-warning:hover { background-color: #e0a800; }

.btn-info { background-color: #17a2b8; color: white; }
.btn-info:hover { background-color: #138496; }

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.btn-download-link {
    text-decoration: underline !important;
    color: #0d6efd !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    height: calc(1.5em + .75rem + 2px);
}

.form-control:focus {
    border-color: #194b91;
    box-shadow: 0 0 0 3px rgba(25, 75, 145, 0.1);
    outline: none;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.password-wrapper #togglePassword {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    z-index: 4;
}

.password-wrapper #togglePassword:hover {
color: #343a40;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

#filesTable td, #filesTable th,
#usersTable td, #usersTable th,
#messagesTable td, #messagesTable th {
    vertical-align: middle;
}

.table-responsive {
    margin-top: 20px;
    overflow-x: auto;
}

.modal-header {
    background-color: #194b91;
    color: white;
}
.modal-title { font-size: 1.25rem; }
.btn-close { filter: invert(1) brightness(2); }

.button-container, .buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 1rem;
}

.btn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}
.btn-actions form, .btn-actions .btn {
    margin: 0;
}

.filter-form {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-container .section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #b0e0e6;
    border-radius: 10px;
    background-color: #f5f5f5;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .container, .login-container, .dashboard-container, .info-container {
        padding: 15px;
    }
    .main-title {
        font-size: 1.8rem;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .form-control {
        padding: 8px;
        font-size: 0.9rem;
    }
    .button-container, .buttons-group {
        gap: 5px;
    }
}

@media (min-width: 576px) {
    .button-container, .buttons-group {
        flex-direction: row;
        justify-content: center;
    }
    .btn {
        width: auto;
    }
}

@media (min-width: 768px) {
    .container, .login-container, .dashboard-container, .info-container {
        padding: 40px;
    }
    .main-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .filter-form .row {
        align-items: flex-end;
    }
    .filter-form .d-grid {
        display: flex !important;
        gap: 10px;
    }
}

.login-container .btn-primary {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}
