/* Sidebar Layout Styles */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --primary-color: #0d6efd;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --transition-speed: 0.3s;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #0f172a 100%);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--sidebar-hover);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--sidebar-active);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: var(--sidebar-active);
    flex-shrink: 0;
}

.sidebar-brand-text {
    transition: opacity var(--transition-speed);
}

.sidebar.collapsed .sidebar-brand-text {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all var(--transition-speed);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
}

.sidebar.collapsed .sidebar-toggle {
    margin: 0 auto;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
    list-style: none;
}

.sidebar-nav-item {
    margin: 0.25rem 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all var(--transition-speed);
    position: relative;
    white-space: nowrap;
}

.sidebar-nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-nav-link.active {
    background: var(--sidebar-active);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--text-primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-link-text {
    transition: opacity var(--transition-speed);
    font-weight: 500;
}

.sidebar.collapsed .sidebar-nav-link-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-nav-link {
    justify-content: center;
    padding: 0.75rem;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all var(--transition-speed);
}

.sidebar-user:hover {
    background: var(--sidebar-hover);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sidebar-active);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    transition: opacity var(--transition-speed);
}

.sidebar-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar.collapsed .sidebar-user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-user-menu {
    position: relative;
}

.sidebar-user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed);
    z-index: 1001;
}

.sidebar-user-menu:hover .sidebar-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sidebar-user-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-user-dropdown-item:last-child {
    border-bottom: none;
}

.sidebar-user-dropdown-item:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
}

.sidebar-user-dropdown-item i {
    margin-right: 0.5rem;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed);
    min-height: 100vh;
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Header */
.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.top-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Content Container */
.content-container {
    padding: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Tables */
.table {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead {
    background: #f8fafc;
}

.table thead th {
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table tbody tr {
    transition: all var(--transition-speed);
}

.table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-speed);
    }

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

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

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

    .content-container {
        padding: 1rem;
    }

    .top-header {
        padding: 0 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .sidebar-toggle {
        display: none;
    }

    .card-body {
        padding: 1rem !important;
    }
}

@media (max-width: 576px) {
    .content-container {
        padding: 0.75rem;
    }

    .top-header {
        padding: 0 0.75rem;
        height: 56px;
    }

    .page-title {
        font-size: 1.125rem;
    }

    .sidebar-brand {
        font-size: 1rem;
    }

    .sidebar-nav-link {
        padding: 0.625rem 0.75rem;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #475569;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1);
    overflow: hidden;
    transition: all var(--transition-speed);
}

.login-card:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.login-header {
    background: linear-gradient(135deg, var(--sidebar-active) 0%, #2563eb 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.login-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.login-header h4 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.login-body {
    padding: 2rem;
}

.login-form .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-form .form-control {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.login-form .form-control:focus {
    background: rgba(15, 23, 42, 0.7);
    border-color: var(--sidebar-active);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    outline: none;
}

.login-form .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.login-form .form-check-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.login-form .form-check-input {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.25rem;
}

.login-form .form-check-input:checked {
    background-color: var(--sidebar-active);
    border-color: var(--sidebar-active);
}

.login-form .form-check-input:focus {
    border-color: var(--sidebar-active);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-form .btn-primary {
    background: linear-gradient(135deg, var(--sidebar-active) 0%, #2563eb 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-form .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, var(--sidebar-active) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.login-form .btn-primary:active {
    transform: translateY(0);
}

.login-form .text-danger {
    color: #ef4444 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.login-form .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.login-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.login-brand-logo i {
    font-size: 2.5rem;
    color: var(--sidebar-active);
}

.login-brand h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.login-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
    opacity: 0.8;
}

@media (max-width: 576px) {
    .login-page {
        padding: 1rem;
    }

    .login-container {
        max-width: 100%;
    }

    .login-header {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    .login-header h4 {
        font-size: 1.25rem;
    }

    .login-header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .login-body {
        padding: 1.5rem;
    }

    .login-brand h1 {
        font-size: 1.5rem;
    }
}

/* Dashboard Statistics Cards */
.stat-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all var(--transition-speed);
}

.stat-card-primary .stat-card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.stat-card-success .stat-card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.stat-card-info .stat-card-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
}

.stat-card-warning .stat-card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.stat-card-danger .stat-card-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.stat-card-secondary .stat-card-icon {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #ffffff;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card-content {
    flex: 1;
    min-width: 0;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.stat-card-details .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
}

/* License Status Chart */
.license-status-chart {
    padding: 0.5rem 0;
}

.status-item {
    padding: 0.5rem 0;
}

.status-item .progress {
    background-color: #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.status-item .progress-bar {
    transition: width 0.6s ease;
}

/* Quick Action Buttons */
.quick-action-btn,
button.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #475569;
    transition: all var(--transition-speed);
    background: #ffffff;
    text-align: center;
    height: 100%;
    min-height: 120px;
    cursor: pointer;
    width: 100%;
}

.quick-action-btn:hover {
    border-color: var(--sidebar-active);
    background: #f8fafc;
    color: var(--sidebar-active);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    transition: all var(--transition-speed);
}

.quick-action-btn:hover .quick-action-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Dashboard Tables */
.dashboard-table {
    font-size: 0.875rem;
}

.dashboard-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #64748b;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.dashboard-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-table tbody tr:hover {
    background-color: #f8fafc;
}

.dashboard-table code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #475569;
    font-family: 'Courier New', monospace;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Dashboard */
@media (max-width: 992px) {
    .stat-card {
        padding: 1.25rem;
    }

    .stat-card-value {
        font-size: 1.75rem;
    }

    .stat-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .quick-action-btn {
        min-height: 100px;
        padding: 1rem 0.75rem;
    }

    .quick-action-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Pagination Styles */
.pagination-info {
    display: flex;
    align-items: center;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination {
    margin: 0;
}

.pagination .page-link {
    color: #475569;
    border-color: #e2e8f0;
    padding: 0.5rem 0.75rem;
    transition: all var(--transition-speed);
}

.pagination .page-link:hover {
    background-color: #f8fafc;
    border-color: var(--sidebar-active);
    color: var(--sidebar-active);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--sidebar-active) 0%, #2563eb 100%);
    border-color: var(--sidebar-active);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
}

/* Table Improvements */
.table {
    font-size: 0.875rem;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr {
    transition: all var(--transition-speed);
}

.table tbody tr:hover {
    background-color: #f8fafc;
    transform: scale(1.001);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Filter Form Improvements */
.filter-form {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.filter-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.filter-form .form-control,
.filter-form .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all var(--transition-speed);
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: var(--sidebar-active);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination-info,
    .pagination-size {
        font-size: 0.75rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }

    .pagination-size {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .pagination-size label {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
    }

    .pagination .page-item {
        margin: 0.125rem;
    }
}

/* Detail Page Styles */
.detail-item {
    margin-bottom: 1rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.detail-value {
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
}

.detail-value code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #475569;
    font-family: 'Courier New', monospace;
}

.detail-value a {
    color: var(--sidebar-active);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.detail-value a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #94a3b8;
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: var(--sidebar-active);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.breadcrumb-item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #64748b;
}

/* Card Improvements */
.card {
    transition: all var(--transition-speed);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
}

.card-header i {
    margin-right: 0.5rem;
}

/* Detail Dividers */
.detail-divider {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

.section-divider {
    margin: 2rem 0;
    border: 0;
    border-top: 2px solid #e2e8f0;
    opacity: 1;
}

/* Responsive Detail Pages */
@media (max-width: 768px) {
    .detail-item {
        margin-bottom: 1.5rem;
    }

    .detail-label {
        font-size: 0.7rem;
    }

    .detail-value {
        font-size: 0.875rem;
    }

    .detail-divider {
        margin: 1rem 0;
    }

    .section-divider {
        margin: 1.5rem 0;
    }
}

/* Filter Section Improvements */
.input-group-text {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.input-group .form-control:focus {
    border-color: var(--sidebar-active);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
}

.form-select-sm {
    font-size: 0.875rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Filter Badges */
.badge a {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.badge a:hover {
    opacity: 1;
}

/* Form Action Buttons */
.form-actions {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    z-index: 10;
}

.form-actions .btn {
    min-width: 120px;
}

@media (max-width: 768px) {
    .form-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        margin: 0;
    }

    .form-actions .btn {
        flex: 1;
        min-width: auto;
    }
}

/* Form Card Styling */
.form-card {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.form-card-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.form-card-body {
    padding: 1.5rem;
}

/* Form Field Styling */
.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label .text-danger {
    color: #ef4444;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
}

/* Delete Modal Styling */
#deleteModal .modal-content {
    border-radius: 0.5rem;
}

#deleteModal .modal-header {
    border-radius: 0.5rem 0.5rem 0 0;
}

#deleteModal .modal-footer {
    border-radius: 0 0 0.5rem 0.5rem;
}

#deleteModal .modal-body dl {
    margin-bottom: 0;
}

#deleteModal .modal-body dt {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

#deleteModal .modal-body dd {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Utility Classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

