/* Custom Styles for UCC Support Service */

:root {
    --primary-color: #0a4a7c;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar-brand img {
    filter: brightness(0) invert(1);
}

/* UCC Logo Styling */
.ucc-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Hero section crest logo - desktop */
.hero-logo-wrap {
    display: inline-block;
    line-height: 0;
}

.hero-crest-logo {
    max-height: 200px;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

footer .ucc-logo {
    max-height: 80px;
    filter: brightness(0) invert(1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d6efd 100%);
    color: white;
}

.hero-section .btn-outline-primary {
    color: white;
    border-color: white;
}

.hero-section .btn-outline-primary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Steps */
.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Status Badges */
.badge-pending {
    background-color: var(--warning-color);
    color: #000;
}

.badge-in_progress {
    background-color: var(--info-color);
    color: white;
}

.badge-resolved {
    background-color: var(--success-color);
    color: white;
}

.badge-rejected {
    background-color: var(--danger-color);
    color: white;
}

/* Priority Badges */
.badge-low {
    background-color: var(--success-color);
    color: white;
}

.badge-medium {
    background-color: var(--info-color);
    color: white;
}

.badge-high {
    background-color: var(--warning-color);
    color: #000;
}

.badge-urgent {
    background-color: var(--danger-color);
    color: white;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
}

.dashboard-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-student {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-complaints {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-pending {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.card-resolved {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(10, 74, 124, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #083a61;
    border-color: #083a61;
}

/* Table Styles */
.table thead th {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(10, 74, 124, 0.1);
}

/* Footer */
footer {
    background-color: #1a1a1a;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

footer p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
/* Dashboard Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(10, 74, 124, 0.1);
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(10, 74, 124, 0.05);
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Form enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 74, 124, 0.25);
}

/* Table enhancements */
.table th {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        padding-top: 0;
    }
    
    .sidebar-sticky {
        height: auto;
    }
}
/* Admin Specific Styles */

/* Timeline for responses */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    z-index: 1;
}

/* Admin table enhancements */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Badge sizes */
.badge-lg {
    font-size: 1em;
    padding: 0.5em 1em;
}

/* Modal enhancements */
.modal-header {
    background-color: var(--primary-color);
    color: white;
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Status colors for admin */
.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in-progress {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-resolved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Avatar placeholder */
.avatar-placeholder {
    width: 80px;
    height: 80px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Chart container */
.chart-container {
    position: relative;
}

/* Bulk action buttons */
.bulk-actions {
    position: sticky;
    bottom: 0;
    background-color: white;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    z-index: 100;
}

/* Print styles */
@media print {
    .navbar, .sidebar, .footer, .btn, .dropdown-menu {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .table {
        border-collapse: collapse;
    }
    
    .table th, .table td {
        border: 1px solid #000;
    }
}
/* Security and Additional Features */

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    height: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-0 { background-color: #dc3545; width: 20%; }
.strength-1 { background-color: #fd7e14; width: 40%; }
.strength-2 { background-color: #ffc107; width: 60%; }
.strength-3 { background-color: #28a745; width: 80%; }
.strength-4 { background-color: #20c997; width: 100%; }

/* Backup file list */
.backup-file {
    border-left: 4px solid #0a4a7c;
    transition: all 0.3s ease;
}

.backup-file:hover {
    background-color: rgba(10, 74, 124, 0.05);
    transform: translateX(5px);
}

/* Report printing */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .table {
        border-collapse: collapse;
        width: 100%;
    }
    
    .table th, .table td {
        border: 1px solid #000;
        padding: 4px;
    }
    
    h1, h2, h3 {
        color: #000;
    }
}

/* Email template preview */
.email-preview {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

/* System status indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online { background-color: #28a745; }
.status-offline { background-color: #dc3545; }
.status-warning { background-color: #ffc107; }

/* Audit log entries */
.audit-log {
    border-left: 3px solid #6c757d;
    padding-left: 15px;
    margin-bottom: 10px;
}

.audit-log.success { border-left-color: #28a745; }
.audit-log.warning { border-left-color: #ffc107; }
.audit-log.danger { border-left-color: #dc3545; }
.audit-log.info { border-left-color: #17a2b8; }

/* File upload preview */
.file-preview {
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-preview:hover {
    border-color: #0a4a7c;
    background-color: rgba(10, 74, 124, 0.05);
}

/* Loading animations */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 300px;
    margin-bottom: 10px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #1a1a1a;
        color: #f8f9fa;
    }
    
    body.dark-mode .card {
        background-color: #2d2d2d;
        border-color: #444;
    }
    
    body.dark-mode .table {
        color: #f8f9fa;
    }
    
    body.dark-mode .table-light {
        background-color: #2d2d2d;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .dashboard-card .display-6 {
        font-size: 1.5rem;
    }
    
    .avatar-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .sidebar {
        position: static;
        height: auto;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================ */

/* Base Mobile Styles (up to 576px) */
@media (max-width: 576px) {
    /* Typography */
    body {
        font-size: 14px;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4 {
        font-size: 1.1rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Hero crest logo - phone friendly: fit within viewport */
    .hero-logo-wrap {
        max-width: 85vw;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .hero-crest-logo,
    .hero-section .ucc-logo {
        max-height: 160px !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .d-md-flex {
        flex-direction: column;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Tables */
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-control-lg {
        font-size: 16px;
        padding: 0.75rem;
    }
    
    /* Dashboard Cards */
    .dashboard-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-card .display-6 {
        font-size: 1.75rem;
    }
    
    .dashboard-card i {
        font-size: 2rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 0 !important;
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    footer img {
        height: 60px;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Step numbers */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    /* Services section icons */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Dropdowns */
    .dropdown-menu {
        font-size: 0.9rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    /* Alerts */
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .hero-section .display-4 {
        font-size: 1.5rem !important;
    }
    
    .hero-logo-wrap {
        max-width: 75vw;
    }
    
    .hero-section .hero-crest-logo {
        max-height: 130px !important;
    }
    
    .dashboard-card .display-6 {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.45rem 0.9rem;
    }
}

/* Tablet Styles (577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .dashboard-card .display-6 {
        font-size: 2rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
}

/* Mobile Navigation Fixes */
@media (max-width: 991px) {
    /* Ensure navbar doesn't overlap content */
    .navbar-collapse {
        background-color: rgba(10, 74, 124, 0.98);
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 0.25rem;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
    }
    
    .navbar-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
}

/* Dashboard Responsive Fixes */
@media (max-width: 991px) {
    /* Sidebar becomes horizontal on mobile */
    .sidebar {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 1rem 0 !important;
        margin-bottom: 1rem;
        background-color: #f8f9fa;
        border-radius: 0.5rem;
    }
    
    .sidebar .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar .nav-item {
        margin: 0.25rem;
    }
    
    .sidebar .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
        background-color: white;
        border: 1px solid #dee2e6;
    }
    
    .sidebar .nav-link:hover {
        background-color: #e9ecef;
    }
    
    /* Main content takes full width on mobile */
    .main-content,
    .col-md-9,
    .col-lg-10 {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Dashboard header adjustments */
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .btn-toolbar {
        margin-top: 1rem;
        width: 100%;
    }
    
    .btn-group {
        width: 100%;
        display: flex;
    }
    
    .btn-group .btn {
        flex: 1;
    }
    
    /* Statistics cards stack properly */
    .row .col-xl-3,
    .row .col-md-6,
    .row .col-md-3,
    .row .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Table responsive wrapper */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
    }
    
    /* Chart containers */
    .chart-container {
        height: 200px !important;
    }
    
    /* Quick actions buttons */
    .d-grid.gap-2 .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Fix for fixed navbar on mobile */
@media (max-width: 991px) {
    body {
        padding-top: 56px;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1030;
    }
}

/* Login Page Mobile Fixes */
@media (max-width: 576px) {
    .login-wrapper {
        padding: 0 1rem;
    }
    
    .login-branding {
        padding: 20px 10px;
        margin-bottom: 20px;
    }
    
    .ucc-logo-icon {
        width: 80px !important;
        height: 80px !important;
    }
    
    .ucc-logo-icon i {
        font-size: 2.5rem !important;
    }
    
    .login-branding h3 {
        font-size: 1.25rem;
    }
    
    .login-branding p {
        font-size: 0.9rem;
    }
    
    .login-card {
        border-radius: 15px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .admin-badge {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Index Page Specific Mobile Fixes */
@media (max-width: 768px) {
    /* Hero section adjustments */
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-5 {
        margin-bottom: 2rem;
    }
    
    /* Middle crest logo - fit for phone */
    .hero-logo-wrap {
        max-width: 80vw;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .hero-crest-logo {
        max-height: 180px !important;
        max-width: 100% !important;
        object-fit: contain;
    }
    
    /* How It Works section */
    #how-it-works .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Services section */
    #services .col-md-6,
    #services .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Footer adjustments */
    footer .col-md-3,
    footer .col-md-5,
    footer .col-md-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
}

/* Print Styles - Hide on mobile when printing */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .dropdown-menu,
    .navbar-toggler {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 0 !important;
    }
    
    .hero-logo-wrap {
        max-width: 40vw;
    }
    
    .hero-section .hero-crest-logo,
    .hero-section .ucc-logo {
        max-height: 120px !important;
    }
    
    .login-wrapper {
        max-width: 600px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }
    
    /* Better tap feedback */
    .btn:active,
    .nav-link:active {
        opacity: 0.7;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img,
    footer img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Additional Mobile Table Utilities */
@media (max-width: 768px) {
    /* Stack table columns on very small screens */
    .table-responsive table {
        display: block;
        width: 100%;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive td {
        display: block;
        width: 100%;
    }
    
    .table-responsive tr {
        border: 1px solid #dee2e6;
        margin-bottom: 1rem;
        border-radius: 0.25rem;
        padding: 0.5rem;
    }
    
    .table-responsive td {
        border: none;
        padding: 0.5rem;
        text-align: left !important;
        position: relative;
        padding-left: 50% !important;
    }
    
    .table-responsive td:before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: var(--primary-color);
    }
    
    /* Keep standard table layout for larger mobile screens */
    @media (min-width: 481px) {
        .table-responsive table {
            display: table;
        }
        
        .table-responsive thead {
            display: table-header-group;
        }
        
        .table-responsive tbody,
        .table-responsive tr,
        .table-responsive td {
            display: table-row-group;
        }
        
        .table-responsive td {
            padding-left: 0.75rem !important;
        }
        
        .table-responsive td:before {
            display: none;
        }
    }
}

/* Form row responsive adjustments */
@media (max-width: 576px) {
    .row .col-md-6,
    .row .col-md-4,
    .row .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Make form inputs full width on mobile */
    .form-control,
    .form-select {
        width: 100%;
    }
    
    /* Better spacing for form groups */
    .mb-3 {
        margin-bottom: 1rem !important;
    }
}

/* Filter and search forms mobile optimization */
@media (max-width: 768px) {
    .filter-form .row {
        margin-bottom: 0.5rem;
    }
    
    .filter-form .col-md-3,
    .filter-form .col-md-4,
    .filter-form .col-md-6 {
        margin-bottom: 0.75rem;
    }
    
    .filter-form .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Action buttons in tables - stack on mobile */
@media (max-width: 576px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.25rem;
        border-radius: 0.25rem !important;
    }
    
    /* Single action buttons */
    .table .btn-sm {
        display: block;
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Modal improvements for mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* Card improvements */
@media (max-width: 576px) {
    .card-header {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 0.75rem;
    }
}

/* Badge improvements for mobile */
@media (max-width: 576px) {
    .badge {
        display: inline-block;
        word-break: break-word;
    }
    
    /* Stack badges vertically if needed */
    .badge-container {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Pagination mobile fixes */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Alert improvements */
@media (max-width: 576px) {
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .alert-dismissible .btn-close {
        padding: 0.75rem;
    }
}

/* Timeline mobile fixes */
@media (max-width: 576px) {
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 16px;
        height: 16px;
    }
}

/* Accessibility improvements */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #0a4a7c;
    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: 0;
}

/* Fixed Sidebar Layout Fix */
.sidebar {
    position: relative;
    padding: 20px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
}

/* Main content area adjustment */
.main-content {
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* For mobile/small screens */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding-top: 0;
        margin-bottom: 20px;
        min-height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Dashboard specific fixes */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* Navbar fix to stay on top */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

/* Ensure content doesn't hide under navbar */
body {
    padding-top: 56px; /* Navbar height */
}

/* Card adjustments */
.card {
    margin-bottom: 20px;
}

/* Login Page Branding */
.login-branding {
    padding: 20px 0;
    margin-bottom: 20px;
}

.ucc-logo-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ucc-logo-icon i {
    font-size: 3.5rem;
    color: white;
}

.login-branding h3 {
    color: #333;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
}

.login-branding p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
}

/* Login Page Tabs */
.login-page .nav-tabs {
    border-bottom: none;
}

.login-page .nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    background-color: white;
    padding: 12px;
}

.login-page .nav-tabs .nav-link.active {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.login-page .nav-tabs .nav-link:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* Login Form */
.login-page .form-control-lg {
    padding: 12px 16px;
    font-size: 1rem;
}

.login-page .form-label {
    color: #333;
    margin-bottom: 8px;
}