html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.login-container {
    max-width: 350px;
    padding: 15px;
}



.login-background {
    background-image: url("/images/background.png");
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px) brightness(70%);
}

.input-group .select2-container {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    width: 1%;
}

.input-group .select2-container .select2-selection {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .select2-selection--single:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    body {
        margin-bottom: 80px;
    }

    .form-control, .form-select, .input-group {
        min-height: 48px;
        font-size: 16px;
    }

    .form-label {
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    label.form-label {
        margin-top: 0.5rem;
    }

    label.form-label:first-child {
        margin-top: 0;
    }

    .btn {
        min-height: 48px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .btn-sm {
        min-height: 36px;
        padding: 0.375rem 0.75rem;
    }

    .btn-lg, .btn-group-lg > .btn {
        min-height: 56px;
        font-size: 1.1rem;
    }

    .p-4 {
        padding: 1rem !important;
    }

    .navbar {
        padding: 0.75rem !important;
    }

    .navbar h1, .navbar .h1 {
        font-size: 1.25rem !important;
    }

    .table td, .table th {
        padding: 0.75rem 0.5rem;
    }

    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .d-flex.justify-content-end.mt-4 {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bs-body-bg);
        padding: 1rem;
        border-top: 1px solid var(--bs-border-color);
        margin: 0;
        gap: 0.5rem;
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .d-flex.justify-content-end.mt-4 .btn {
        flex: 1;
    }

    .action-buttons {
        display: flex;
        gap: 0.5rem;
    }

    .action-buttons .btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .action-buttons .btn i {
        font-size: 1.1rem;
    }

    .table .action-buttons {
        flex-wrap: nowrap;
    }

    [class*="col-"]:not([class*="col-md"]):not([class*="col-lg"]):not([class*="col-xl"]) {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        width: 100%;
    }

    .row > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-row .col-2,
    .form-row .col-3,
    .form-row .col-4,
    .form-row .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .table .btn-sm {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 0.75rem;
    }

    .modal-body {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-pills {
        flex-direction: column;
    }

    .nav-pills .nav-link {
        text-align: center;
    }

    .quick-add-btn {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

