/* Modern UI Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

.main-content {
    background-color: #fff;
    border-radius: 0.5rem;
    margin: 1rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.table {
    vertical-align: middle;
}

.table thead {
    background-color: #e9ecef;
}

.table th {
    font-weight: 600;
}

.badge {
    font-size: 0.8rem;
    padding: 0.5em 0.75em;
}

.alert {
    border-radius: 0.5rem;
}

.list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.text-primary { color: #0d6efd !important; }
.text-success { color: #198754 !important; }
.text-info { color: #0dcaf0 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

.bg-primary-light { background-color: rgba(13, 110, 253, 0.1); }
.bg-success-light { background-color: rgba(25, 135, 84, 0.1); }
.bg-info-light { background-color: rgba(13, 202, 240, 0.1); }
.bg-warning-light { background-color: rgba(255, 193, 7, 0.1); }
.bg-danger-light { background-color: rgba(220, 53, 69, 0.1); }

.swal-modal .swal-footer {
  text-align: center;
}

.swal-center-button {
  display: inline-block;
  margin: 0 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
    /* Mobile navigation adjustments */
    .main-content {
        margin: 0;
        border-radius: 0;
        padding: 1rem;
        min-height: calc(100vh - 60px);
    }
    
    /* Mobile typography */
    .h1, .h2 {
        font-size: 1.75rem;
    }
    
    /* Mobile card adjustments */
    .card {
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 0.375rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Mobile form controls */
    .form-control, .form-select {
        border-radius: 0.375rem;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.625rem 0.875rem;
    }
    
    /* Mobile spacing */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Mobile table responsiveness */
    .table-responsive {
        border-radius: 0.5rem;
        margin-bottom: 0;
    }
}

/* Small mobile devices (phones) */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }
    
    /* Smaller headings on small screens */
    .h1, .h2 {
        font-size: 1.5rem;
    }
    
    .h3, .h4 {
        font-size: 1.25rem;
    }
    
    /* Compact spacing */
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .p-3 {
        padding: 0.75rem !important;
    }
}

/* Landscape phone optimization */
@media (max-width: 767.98px) and (orientation: landscape) {
    .main-content {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .h1, .h2 {
        font-size: 1.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    }
    
    .list-group-item:hover {
        background-color: inherit;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    /* Better spacing for touch */
    .btn-group .btn {
        margin: 0.125rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05);
    }
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    box-shadow: none;
}

/* Additional mobile utility classes */
@media (max-width: 991.98px) {
    .d-mobile-block { display: block !important; }
    .d-mobile-none { display: none !important; }
    .text-mobile-center { text-align: center !important; }
    .w-mobile-100 { width: 100% !important; }
}