/* site.css - Add at the top */
body {
    font-size: 12px !important; /* Reduced from 14px */
}

.table {
    font-size: 11px !important; /* Reduced from 13px */
}

.btn-sm {
    font-size: 9px !important; /* Reduced from 11px */
    padding: 0.2rem 0.4rem !important; /* Make buttons more compact */
}

.modern-theme {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar styles */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.85rem; /* Slightly reduced */
}

/* Main content area */
.main-content {
    margin-top: 6rem;
    flex: 1 0 auto;
}

/* Card styles */
.card {
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 0.85rem; /* Slightly reduced */
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0b5ed7;
    }

/* Form styles */
.form-control {
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,.1);
    font-size: 0.85rem; /* Slightly reduced */
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15);
    }

.form-label {
    font-weight: 700;
    font-size: 0.85rem; /* Slightly reduced */
    margin-bottom: 0.5rem;
}

/* Table styles */
.table {
    --bs-table-striped-bg: rgba(0,0,0,.01);
}

    .table thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.65rem; /* Reduced */
        letter-spacing: 0.5px;
    }

/* Dropdown styles */
.dropdown-menu {
    padding: 0.5rem 0;
    border: 1px solid rgba(0,0,0,.05);
}

.dropdown-item {
    font-size: 0.85rem; /* Slightly reduced */
    padding: 0.5rem 1.5rem;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

/* Footer styles */
.footer {
    background-color: #fff !important;
    border-top: 1px solid rgba(0,0,0,.05);
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Validation styles */
.validation-summary-errors {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.field-validation-error {
    font-size: 0.75rem; /* Reduced */
    color: #dc3545;
    margin-top: 0.25rem;
    display: block;
}

/* Custom helper classes */
.text-sm {
    font-size: 0.75rem;
}

.font-semibold {
    font-weight: 600;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(0,0,0,.1) !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.05) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
}

.ui-menu-item {
    padding: 0.5rem 0.75rem !important;
}

.ui-menu-item-wrapper.ui-state-active {
    background: #0d6efd !important;
    border: none !important;
    margin: 0 !important;
}

/* Validation Styling */
.input-validation-error {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.validation-summary-errors {
    margin-bottom: 1rem;
}

.field-validation-error {
    display: none;
}

.form-switch .form-check-input {
    width: 2em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: all .3s ease-in-out;
}

    .form-switch .form-check-input:checked {
        background-position: right center;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
        background-color: #0d6efd;
    }

.table-secondary {
    background-color: #f8f9fa !important;
    color: #6c757d;
}

/* Also make form control labels bold */
.form-group label.control-label {
    font-weight: 700;
}