﻿/* ========================================
   CONTAINERS MANAGEMENT - COMPLETE STYLES
   File: Containers.css
   ======================================== */

/* ===== BASE STYLES ===== */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 12px;
    --box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== KPI CARDS ===== */
.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid;
    position: relative;
    overflow: visible !important;
}

    .kpi-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(50%, -50%);
    }

    .kpi-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

.kpi-card-primary {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.kpi-card-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #ffffff 0%, #f6fff8 100%);
}

.kpi-card-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffdf6 100%);
}

.kpi-card-danger {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.kpi-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kpi-card-primary .kpi-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
}

.kpi-card-success .kpi-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    color: white;
}

.kpi-card-warning .kpi-icon {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb300 100%);
    color: white;
}

.kpi-card-danger .kpi-icon {
    background: linear-gradient(135deg, var(--danger-color) 0%, #bb2d3b 100%);
    color: white;
}

.kpi-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #212529;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.kpi-trend,
.kpi-percentage {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .kpi-trend i {
        font-size: 0.7rem;
    }

/* ===== PAGE HEADER ===== */
.ui-page-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    flex-wrap: wrap;
    gap: 1rem;
}

    .ui-page-header-enhanced h2 {
        margin: 0;
        font-size: 2rem;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .ui-page-header-enhanced p {
        margin: 0.5rem 0 0;
        opacity: 0.95;
    }

    .ui-page-header-enhanced .d-flex button {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        backdrop-filter: blur(10px);
        transition: var(--transition);
    }

        .ui-page-header-enhanced .d-flex button:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

    .ui-page-header-enhanced .ui-btn-success {
        background: var(--success-color);
        border-color: var(--success-color);
    }

        .ui-page-header-enhanced .ui-btn-success:hover {
            background: #157347;
            border-color: #157347;
        }

/* ===== CARDS ===== */
.ui-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    overflow: visible !important;
    transition: box-shadow 0.3s;
}

    .ui-card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .ui-card .card-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 2px solid #dee2e6;
        padding: 1.25rem 1.5rem;
        font-weight: 600;
    }

    .ui-card .card-body {
        padding: 1.5rem;
    }

    .ui-card .card-footer {
        background: #f8f9fa;
        border-top: 1px solid #dee2e6;
        padding: 1rem 1.5rem;
    }

/* ===== FILTER CARD ===== */
.ui-card-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #e9ecef;
}

.filter-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1rem;
}

    .filter-header h6 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #495057;
        display: flex;
        align-items: center;
    }

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

    .btn-link:hover {
        background: #e7f1ff;
        color: #0a58ca;
    }

/* ===== FORM CONTROLS ===== */
.ui-input,
.ui-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
    width: 100%;
}

    .ui-input:focus,
    .ui-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
        outline: none;
    }

.ui-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

    .ui-label.required::after {
        content: " *";
        color: var(--danger-color);
        font-weight: bold;
    }

.input-group {
    display: flex;
    width: 100%;
}

.input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-right: none;
    color: #6c757d;
    padding: 0.625rem 1rem;
    border-radius: 8px 0 0 8px;
}

.input-group .ui-input {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

textarea.ui-input {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: var(--transition);
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
}

    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
    }

/* ===== BUTTONS ===== */
.ui-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

    .ui-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .ui-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.ui-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
}

.ui-btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    color: white;
}

.ui-btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb300 100%);
    color: #000;
}

.ui-btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #bb2d3b 100%);
    color: white;
}

.ui-btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #5c636a 100%);
    color: white;
}

.ui-btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

    .ui-btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
    }

.ui-btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

    .ui-btn-outline-secondary:hover {
        background: var(--secondary-color);
        color: white;
    }

.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #000;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    color: #000;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-group {
    display: flex;
    gap: 0.25rem;
}

/* ===== TABLE STYLES ===== */
.ui-table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ui-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

    .ui-table thead {
        background: linear-gradient(135deg, #495057 0%, #343a40 100%);
        color: white;
    }

        .ui-table thead th {
            padding: 1rem;
            font-weight: 600;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: none;
            white-space: nowrap;
        }

            .ui-table thead th i {
                opacity: 0.8;
            }

    .ui-table tbody tr {
        transition: var(--transition);
        border-bottom: 1px solid #f0f0f0;
    }

.ui-table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.002);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ui-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

    .ui-table tbody td input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

    .status-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

.status-available {
    background: linear-gradient(135deg, #d1e7dd 0%, #c3e6cb 100%);
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.status-busy {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    color: #664d03;
    border: 1px solid #ffd966;
}

.status-outofservice {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    color: #842029;
    border: 1px solid #e5a8ad;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.bg-info {
    background-color: var(--info-color) !important;
    color: #000;
}

/* ===== NOTES PREVIEW ===== */
.notes-preview {
    font-size: 0.875rem;
    color: #6c757d;
    cursor: help;
    transition: color 0.2s;
}

    .notes-preview:hover {
        color: #495057;
    }

/* ===== PAGINATION ===== */
.ui-pagination-nav {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.ui-pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.ui-page-btn {
    min-width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ui-page-btn:hover:not(:disabled) {
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
    }

    .ui-page-btn.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }

    .ui-page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.ui-page-dots {
    padding: 0 0.5rem;
    color: #6c757d;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    border: none;
    box-shadow: var(--box-shadow);
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    color: #0f5132;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #842029;
}

.alert-info {
    background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
    color: #084298;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #664d03;
}

.alert-dismissible {
    padding-right: 3rem;
    position: relative;
}

.btn-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
}

    .btn-close:hover {
        opacity: 1;
    }

/* ===== MODAL ===== */
.ui-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: none;
}

    .ui-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.ui-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
}

.ui-modal-dialog {
    position: relative;
    z-index: 1060;
    width: 90%;
    max-width: 800px;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ui-modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ui-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .ui-modal-header.bg-primary {
        background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    }

.ui-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.ui-modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

    .ui-modal-close:hover {
        background: rgba(0, 0, 0, 0.1);
    }

.ui-modal-body {
    padding: 2rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.ui-modal-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===== SKELETON LOADER ===== */
.table-skeleton {
    padding: 1.5rem;
}

.skeleton-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.skeleton-cell {
    height: 50px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
    border-radius: 8px;
    flex: 1;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== BULK ACTIONS BAR ===== */
.bulk-actions-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.bulk-actions-info {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.bulk-actions-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ===== LOADING SPINNER ===== */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.125em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* ===== UTILITY CLASSES ===== */
.d-flex {
    display: flex !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-1 {
    margin-inline-end: 0.25rem !important;
}

.me-2 {
    margin-inline-end: 0.5rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .row .col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .kpi-card {
        margin-bottom: 1rem;
    }

    .ui-page-header-enhanced {
        padding: 1rem;
    }

        .ui-page-header-enhanced h2 {
            font-size: 1.5rem;
        }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .kpi-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .kpi-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .kpi-value {
        font-size: 1.75rem;
    }

    .kpi-label {
        font-size: 0.75rem;
    }

    .ui-table-responsive {
        overflow-x: auto;
    }

    .ui-table {
        min-width: 800px;
    }

        .ui-table thead th {
            padding: 0.75rem 0.5rem;
            font-size: 0.75rem;
        }

        .ui-table tbody td {
            padding: 0.75rem 0.5rem;
            font-size: 0.85rem;
        }

    .status-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    .ui-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
    }

        .btn-group .btn {
            width: 100%;
            border-radius: 0.5rem !important;
        }

    .ui-pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .ui-page-btn {
        min-width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .ui-modal-dialog {
        margin: 0;
        max-width: 100% !important;
        height: 100vh;
    }

    .ui-modal-content {
        height: 100vh;
        border-radius: 0;
    }

    .ui-modal-body {
        padding: 1rem;
        max-height: calc(100vh - 150px);
    }

    .bulk-actions-bar .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }

    .bulk-actions-buttons {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

        .bulk-actions-buttons .btn {
            flex: 1 1 calc(50% - 0.25rem);
            min-width: 120px;
        }
}

@media (max-width: 576px) {
    .ui-page-header-enhanced {
        padding: 0.75rem;
    }

        .ui-page-header-enhanced h2 {
            font-size: 1.125rem;
        }

    .kpi-card {
        padding: 0.75rem;
    }

    .kpi-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .kpi-value {
        font-size: 1.5rem;
    }

    .ui-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .ui-input,
    .ui-select {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .ui-label {
        font-size: 0.875rem;
    }

    .bulk-actions-buttons .btn {
        flex: 1 1 100%;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: background 0.3s;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

* {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ACCESSIBILITY ===== */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .ui-page-header-enhanced button,
    .filter-header button,
    .bulk-actions-bar,
    .ui-pagination,
    .btn-group,
    .ui-modal,
    button,
    input[type="checkbox"] {
        display: none !important;
    }

    body {
        font-size: 10pt;
        color: #000;
    }

    .ui-page-header-enhanced {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0;
    }

    .ui-card,
    .kpi-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
        background: white !important;
    }

    .ui-table {
        font-size: 9pt;
        border-collapse: collapse;
    }

        .ui-table thead {
            background: #f8f9fa !important;
            color: #000 !important;
        }

        .ui-table th,
        .ui-table td {
            border: 1px solid #dee2e6;
            padding: 0.5rem;
        }

    .status-badge {
        border: 1px solid #000;
        background: white !important;
        color: #000 !important;
    }

    @page {
        margin: 2cm;
        size: A4;
    }
}
