:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #F28C28;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #f5f5f5;
    --white: #fff;
    --black: #000;
    --border-color: #e0e0e0;
    --sidebar-width: 250px;
    --header-height: 60px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.logo i {
    font-size: 1.8rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 107, 53, 0.2);
    color: var(--white);
}

/* Collapsed sidebar */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .logo span,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .user-info span {
    display: none;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 15px;
}

.sidebar.collapsed .nav-item i {
    margin-right: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 5px 0;
}

.nav-item:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--white);
    border-left-color: var(--primary-orange);
}

.nav-item.active {
    background-color: rgba(255, 107, 53, 0.2);
    color: var(--white);
    border-left-color: var(--primary-orange);
}

.nav-item i {
    width: 25px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.user-info i {
    font-size: 2rem;
    color: var(--primary-orange);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed~.main-content {
    margin-left: 70px;
}

/* Top Header */
.top-header {
    background-color: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--medium-gray);
    display: none;
    padding: 5px;
}

.menu-toggle:hover {
    color: var(--primary-orange);
}

.top-header h1 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    font-weight: 600;
}

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

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 20px;
    padding: 8px 15px;
    width: 300px;
}

.search-box i {
    color: var(--medium-gray);
    margin-right: 10px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--medium-gray);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary-orange);
}

.icon-btn::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: none;
}

.icon-btn.notification::after {
    display: block;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h3 {
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.card-header h3 i {
    color: var(--primary-orange);
}

.chart-field-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--dark-gray);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.chart-field-select:hover {
    border-color: var(--primary-orange);
}

.chart-field-select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.chart-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chart-title-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--dark-gray);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    min-width: 150px;
    max-width: 200px;
    display: block;
    visibility: visible;
}

.chart-title-input:hover {
    border-color: var(--primary-orange);
}

.chart-title-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.card-body {
    padding: 20px;
}

.close-form {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--medium-gray);
    padding: 5px;
}

.close-form:hover {
    color: var(--primary-orange);
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    max-width: 200px;
}

.filter-select:hover {
    border-color: var(--primary-orange);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    max-width: 160px;
}

.filter-input:hover {
    border-color: var(--primary-orange);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--dark-gray);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* File Upload */
.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-orange);
    background-color: rgba(255, 107, 53, 0.05);
}

.file-upload i {
    font-size: 2rem;
    color: var(--primary-orange);
}

.file-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload span {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

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

th {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative;
}

tr:hover td {
    background-color: rgba(255, 107, 53, 0.05);
}

/* Tooltip styles */
td.has-overflow {
    position: relative;
}

td.has-overflow:hover::before {
    content: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 12px 16px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: var(--white);
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: pre-wrap;
    max-width: 520px;
    max-height: 320px;
    overflow: auto;
    word-wrap: break-word;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    text-align: left;
    line-height: 1.5;
    animation: tooltipFadeIn 0.2s ease-out;
}

td.has-overflow:hover::after {
    content: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    border: 8px solid transparent;
    border-top-color: #555;
    margin-bottom: 0;
    z-index: 1000;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.2));
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Overflow cell styles for description and solution columns */
td.overflow-cell {
    max-width: 250px;
}

.cell-tooltip {
    position: fixed;
    z-index: 3000;
    padding: 12px 16px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: var(--white);
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: pre-wrap;
    max-width: 80vw;
    max-height: 70vh;
    overflow: auto;
    overflow-wrap: anywhere;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.cell-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
}

.cell-tooltip[data-placement="top"]::after {
    bottom: -16px;
    border-top-color: #555;
}

.cell-tooltip[data-placement="bottom"]::after {
    top: -16px;
    border-bottom-color: #555;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.edit-btn {
    background-color: var(--primary-orange);
    color: var(--white);
}

.edit-btn:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-1px);
}

.delete-btn {
    background-color: #e74c3c;
    color: var(--white);
}

.delete-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--primary-orange);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Highlighted stat card for follow-up count */
.stat-card-highlight {
    background: linear-gradient(135deg, #FF6B35 0%, #F28C28 100%);
    border: 2px solid #FF6B35;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.stat-card-highlight:hover {
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.4);
    transform: translateY(-8px);
}

.stat-card-highlight .stat-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.stat-card-highlight .stat-icon i {
    color: var(--white);
}

.stat-card-highlight .stat-info h3 {
    color: var(--white);
    font-size: 2.5rem;
}

.stat-card-highlight .stat-info p {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1rem;
}

/* Dashboard Filters */
.dashboard-filters {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-gray);
}

.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-group span {
    color: var(--medium-gray);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
}

.chart-card {
    min-height: 400px;
}

.chart-card canvas {
    max-height: 300px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--dark-gray);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary-orange);
}

.modal-header .close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.modal-header .close:hover {
    color: var(--primary-orange);
}

.modal-body {
    padding: 25px;
}

#editModal .modal-content {
    width: min(calc(100vw - var(--sidebar-width) - 80px), 800px);
    max-width: 800px;
    max-height: 92vh;
    margin: 3vh auto;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed~.main-content #editModal .modal-content {
    width: min(calc(100vw - 70px - 80px), 800px);
}

#editModal .modal-body {
    flex: 1;
    overflow: auto;
}

#editModal .form-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#createModal .modal-content {
    width: min(calc(100vw - var(--sidebar-width) - 80px), 800px);
    max-width: 800px;
    max-height: 92vh;
    margin: 3vh auto;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed~.main-content #createModal .modal-content {
    width: min(calc(100vw - 70px - 80px), 800px);
}

#createModal .modal-body {
    flex: 1;
    overflow: auto;
}

#createModal .form-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Trial Periods Section */
.trial-periods-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h4 {
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.section-header h4 i {
    color: var(--primary-orange);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.trial-periods-list {
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
}

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

.trial-periods-table thead {
    background-color: var(--light-gray);
}

.trial-periods-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border-color);
}

.trial-periods-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.trial-periods-table tbody tr:hover {
    background-color: var(--light-gray);
}

.trial-action-btns {
    display: flex;
    gap: 8px;
}

.trial-action-btns .action-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
}

.no-data-message {
    padding: 30px;
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 25px 0;
}

/* Trial Period Modals */
#addTrialPeriodModal .modal-content,
#editTrialPeriodModal .modal-content {
    max-width: 500px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .top-header {
        padding: 0 15px;
    }

    .search-box {
        width: 200px;
    }

    .content-area {
        padding: 15px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar button {
        width: 100%;
        justify-content: center;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select,
    .filter-input {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    table {
        font-size: 0.8rem;
    }

    th,
    td {
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    #editModal .modal-content {
        width: calc(100% - 24px);
        margin: 4vh auto;
        max-height: 92vh;
    }

    #editModal .modal-body {
        padding: 18px;
    }

    #createModal .modal-content {
        width: calc(100% - 24px);
        margin: 4vh auto;
        max-height: 92vh;
    }

    #createModal .modal-body {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .search-box {
        display: none;
    }

    .header-right .icon-btn {
        padding: 5px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--dark-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--light-gray);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--dark-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-number:hover {
    background: var(--secondary-orange);
    color: var(--white);
    border-color: var(--secondary-orange);
    transform: translateY(-1px);
}

.page-number.active {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
    font-weight: 600;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-size label {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.pagination-size select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--dark-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-size select:hover {
    border-color: var(--primary-orange);
}

.pagination-size select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .pagination-size {
        justify-content: center;
    }

    .pagination-info {
        text-align: center;
    }
}