/* Support Ticketing System - Professional CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Authentication Pages */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 16px;
}

.auth-form {
    padding: 40px 30px;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.3);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 35px;
    font-size: 18px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #2980b9;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Content Area */
.content {
    padding: 30px;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e1e5e9;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 30px;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.stat-icon.success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.stat-icon.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background: #fff3cd;
    color: #856404;
}

.status-answered {
    background: #d1ecf1;
    color: #0c5460;
}

.status-closed {
    background: #d4edda;
    color: #155724;
}

.priority-low {
    background: #e2e3e5;
    color: #383d41;
}

.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-high {
    background: #f8d7da;
    color: #721c24;
}

.priority-urgent {
    background: #f5c6cb;
    color: #721c24;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Forms */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* File Upload */
.file-upload {
    border: 2px dashed #e1e5e9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.file-upload.dragover {
    border-color: #3498db;
    background: #e3f2fd;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.file-upload-text {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 10px;
}

.file-upload-hint {
    color: #95a5a6;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Sidebar Toggle for Mobile */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
    margin-right: 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.sidebar-toggle:active {
    background: rgba(52, 152, 219, 0.1);
    transform: scale(0.95);
}

.sidebar-toggle:hover {
    color: #3498db;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        z-index: 1001;
        transition: transform 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-bar {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .top-bar-left h1 {
        font-size: 24px;
    }
    
    .top-bar-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .auth-container {
        margin: 10px;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .search-filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ticket-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ticket-details {
        grid-template-columns: 1fr;
    }
    
    .reply-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .file-upload {
        padding: 20px;
    }
    
    .file-upload-icon {
        font-size: 36px;
    }
    
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .reply-item {
        padding: 15px;
    }
    
    .reply-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .message-content {
        padding: 15px;
        font-size: 14px;
    }
    
    .ticket-subject {
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .status-badge,
    .priority-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Additional tablet improvements */
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
    
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ticket-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reply-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .file-upload {
        padding: 25px;
    }
    
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .reply-item {
        padding: 20px;
    }
    
    .message-content {
        padding: 20px;
        font-size: 15px;
    }
    
    .ticket-subject {
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .status-badge,
    .priority-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .notice-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-header {
        padding: 25px 15px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .auth-form h2 {
        font-size: 18px;
    }
    
    .auth-form {
        padding: 25px 15px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .content {
        padding: 15px 10px;
    }
    
    .top-bar {
        padding: 10px 15px;
    }
    
    .top-bar-left h1 {
        font-size: 20px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .input-group input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
    
    .file-upload {
        padding: 15px;
    }
    
    .file-upload-icon {
        font-size: 32px;
    }
    
    .file-upload-text {
        font-size: 14px;
    }
    
    .file-upload-hint {
        font-size: 12px;
    }
    
    .reply-item {
        padding: 12px;
    }
    
    .message-content {
        padding: 12px;
        font-size: 13px;
    }
    
    .attachment-item {
        padding: 8px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .status-badge,
    .priority-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .admin-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .reply-date {
        font-size: 11px;
    }
    
    .notice-content {
        font-size: 14px;
    }
    
    .notice-meta {
        font-size: 11px;
    }
    
    .detail-row label {
        font-size: 13px;
    }
    
    .detail-row span {
        font-size: 14px;
    }
    
    /* Additional mobile improvements */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Form improvements for mobile */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Table improvements for mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        white-space: nowrap;
        min-width: 80px;
    }
    
    /* Button improvements */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    /* Card improvements */
    .card {
        margin-bottom: 15px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Navigation improvements */
    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .nav-item {
        margin-bottom: 5px;
    }
    
    /* Search and filter improvements */
    .search-filter-bar {
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Stats grid improvements */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        text-align: center;
    }
    
    /* User info improvements */
    .user-info-cell {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .user-details {
        margin-top: 5px;
    }
    
    /* Action buttons improvements */
    .action-buttons {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* File upload improvements */
    .file-list {
        margin-top: 10px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Pagination improvements */
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        margin: 2px;
        padding: 8px 12px;
    }
    
    /* Alert improvements */
    .alert {
        margin: 10px 0;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Empty state improvements */
    .empty-state {
        padding: 30px 15px;
        text-align: center;
    }
    
    .empty-state i {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .empty-state h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .empty-state p {
        font-size: 14px;
        color: #6c757d;
    }
}


/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #6c757d; }
.text-primary { color: #3498db; }
.text-success { color: #27ae60; }
.text-warning { color: #f39c12; }
.text-danger { color: #e74c3c; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
