:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --sidebar-width: 260px;
}

[data-theme="dark"] {
    --dark-color: #f8fafc;
    --light-color: #0f172a;
    --gray-color: #94a3b8;
    --border-color: #334155;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] body {
    background-color: #0f172a;
    color: #f8fafc;
}

[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
}

[data-theme="dark"] .topbar {
    background: #0f172a !important;
}

[data-theme="dark"] .stat-card {
    background: #1e293b;
}

[data-theme="dark"] .table {
    background: #1e293b;
    color: #f8fafc;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #334155;
    border-color: #475569;
    color: #f8fafc;
}

[data-theme="dark"] .modal-content {
    background: #1e293b;
    color: #f8fafc;
}

[data-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dropdown-item {
    color: #f8fafc;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #334155;
}

[data-theme="dark"] .bg-light {
    background: #1e293b !important;
}

/* Desktop Sidebar - Fixed left sidebar for logged in users */
.desktop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-theme="dark"] .desktop-sidebar {
    background: linear-gradient(180deg, #1e40af, #1e3a8a);
}

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

.desktop-sidebar .sidebar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

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

.desktop-sidebar .sidebar-section {
    margin-bottom: 5px;
}

.desktop-sidebar .sidebar-section-title {
    display: block;
    padding: 10px 20px 5px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.desktop-sidebar .sidebar-link:hover,
.desktop-sidebar .sidebar-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.desktop-sidebar .sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

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

.admin-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s;
}

[data-theme="dark"] .admin-topbar {
    background: #1e293b;
    border-bottom-color: #334155;
    color: white;
}

body.has-sidebar .main-content {
    margin-left: var(--sidebar-width);
    padding-top: 80px;
}

@media (max-width: 991px) {
    .admin-topbar {
        display: none !important;
    }
    body.has-sidebar .main-content {
        padding-top: 20px;
    }
}

body.has-sidebar .footer {
    display: none !important;
}

/* Mobile top bar */
.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 12px 15px;
    align-items: center;
    justify-content: space-between;
}

.mobile-topbar .mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 5px 10px;
}

.mobile-topbar .mobile-brand {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.mobile-topbar .mobile-notification {
    color: white;
    font-size: 1.1rem;
    position: relative;
}

.mobile-topbar .notification-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

/* Hide desktop sidebar on mobile, show mobile elements */
@media (max-width: 991px) {
    .desktop-sidebar {
        display: none !important;
    }

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

    .mobile-topbar {
        display: flex;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    body.has-sidebar {
        padding-bottom: 70px;
    }

    .footer {
        display: none !important;
    }
}

/* Show desktop sidebar on large screens */
@media (min-width: 992px) {
    .mobile-topbar {
        display: none !important;
    }

    .mobile-sidebar {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }

    body.has-sidebar .mobile-bottom-nav {
        display: none !important;
    }
}

.topbar {
    background: #1e293b;
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.topbar a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.topbar a:hover {
    color: white;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    padding: 12px 0;
}

.navbar-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.desktop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #1e293b;
    color: white;
    z-index: 1050;
    padding-top: 20px;
}

.main-content {
    margin-left: 260px;
    padding: 20px;
}

@media (max-width: 991px) {
    .desktop-sidebar { display: none; }
    .main-content { margin-left: 0; }
}

.sidebar-header .btn {
    font-size: 0.8rem;
    padding: 8px;
    border-radius: 8px;
}

.sidebar-header .btn-primary {
    background: #2563eb;
    border: none;
}

.sidebar-header .btn-outline-light {
    border-color: rgba(255,255,255,0.2);
}

.sidebar-header .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar-link i {
    width: 20px;
    margin-right: 10px;
}

.sidebar-section-title {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 15px 20px 5px;
}

[data-theme="dark"] .desktop-sidebar {
    background: #0f172a;
}

[data-theme="dark"] .sidebar-link {
    color: #94a3b8;
}

[data-theme="dark"] .sidebar-link:hover, 
[data-theme="dark"] .sidebar-link.active {
    background: #1e293b;
    color: white;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 1rem 1.25rem !important;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--light-color);
}

.dropdown-item i {
    width: 20px;
}

.theme-toggle {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #1e293b;
    z-index: 2000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar .sidebar-nav {
    padding: 10px 0;
}

.mobile-sidebar .sidebar-section-title {
    color: rgba(255,255,255,0.4);
    font-size: 0.65rem;
    padding: 15px 20px 5px;
}

.mobile-sidebar .sidebar-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    font-size: 0.9rem;
}

.mobile-sidebar .sidebar-link:hover,
.mobile-sidebar .sidebar-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.sidebar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.theme-animate {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-container {
    position: relative;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .chart-container {
    filter: brightness(0.9) contrast(1.1);
}

.sidebar-close {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

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

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.sidebar-link i {
    width: 22px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 10px 20px;
}

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

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
}

[data-theme="dark"] .mobile-bottom-nav {
    background: #1e293b;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 5px 10px;
    transition: color 0.3s;
}

.mobile-bottom-nav a i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    body {
        padding-bottom: 70px;
    }
    .stat-card {
        padding: 15px !important;
    }
    .stat-card .stat-value {
        font-size: 1.3rem !important;
    }
    .stat-card .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    .card-body {
        padding: 15px;
    }
    h2 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    .table {
        font-size: 0.8rem;
    }
    .order-card {
        padding: 15px;
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    .hero-section h1 {
        font-size: 1.75rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-slide-in {
    animation: slideIn 0.5s ease;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-warning {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    animation: scaleIn 0.3s ease;
}

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

.card-header {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    border: none;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    animation: scaleIn 0.3s ease;
}

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

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

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

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-pending_approval { background: #fef3c7; color: #92400e; }
.status-approved { background: #dbeafe; color: #1e40af; }
.status-assigned { background: #e0e7ff; color: #3730a3; }
.status-in_progress { background: #fce7f3; color: #9d174d; }
.status-submitted { background: #d1fae5; color: #065f46; }
.status-review { background: #fef3c7; color: #92400e; }
.status-completed { background: #10b981; color: white; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-open { background: #fef3c7; color: #92400e; }
.status-closed { background: #d1d5db; color: #374151; }
.status-active { background: #d1fae5; color: #065f46; }
.status-suspended { background: #fef3c7; color: #92400e; }
.status-banned { background: #fee2e2; color: #991b1b; }

.order-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
    animation: slideIn 0.3s ease;
}

[data-theme="dark"] .order-card {
    background: #1e293b;
}

.order-card:hover {
    transform: translateX(5px);
}

.order-card h5 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.order-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
}

[data-theme="dark"] .login-card {
    background: #1e293b;
}

@media (max-width: 576px) {
    .login-card {
        padding: 25px;
    }
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.login-card .form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.login-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.profile-image-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    position: relative;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-container .upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-image-container:hover .upload-overlay {
    opacity: 1;
}

.qna-locked {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

[data-theme="dark"] .qna-locked {
    background: #334155;
}

.qna-locked i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: var(--light-color);
    font-weight: 600;
    border: none;
}

.table td {
    vertical-align: middle;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-container {
    height: 400px;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
}

[data-theme="dark"] .chat-container {
    background: #0f172a;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    animation: slideIn 0.3s ease;
}

.chat-message.sent {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .chat-bubble {
    background: #334155;
}

.chat-message.sent .chat-bubble {
    background: var(--primary-color);
    color: white;
}

.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

[data-theme="dark"] .footer {
    background: #020617;
}

.footer h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.print-only {
    display: none;
}

@media print {
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    body {
        background: white;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
}

.file-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.file-upload-zone i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .file-upload-zone {
        padding: 25px;
    }
    .file-upload-zone i {
        font-size: 2rem;
    }
}

.receipt-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid var(--dark-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.receipt-header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.receipt-table {
    width: 100%;
    margin-bottom: 30px;
}

.receipt-table th,
.receipt-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.receipt-total {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
    padding-top: 20px;
    border-top: 2px solid var(--dark-color);
}

.ticket-card {
    border-left: 4px solid var(--accent-color);
}

.ticket-card.priority-high {
    border-left-color: #ef4444;
}

.ticket-card.priority-medium {
    border-left-color: var(--accent-color);
}

.ticket-card.priority-low {
    border-left-color: var(--secondary-color);
}

.paypal-button {
    background: #0070ba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.paypal-button:hover {
    background: #005ea6;
    color: white;
    transform: translateY(-2px);
}

.analytics-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 15px;
    padding: 25px;
}

.analytics-card h6 {
    opacity: 0.8;
    margin-bottom: 10px;
}

.analytics-card .value {
    font-size: 2rem;
    font-weight: 700;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 1.75rem;
    margin: 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px 0;
    }
    .page-header h1 {
        font-size: 1.25rem;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--gray-color);
    margin-bottom: 10px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.user-badge.role-admin {
    background: #fee2e2;
    color: #991b1b;
}

.user-badge.role-writer {
    background: #dbeafe;
    color: #1e40af;
}

.user-badge.role-client {
    background: #d1fae5;
    color: #065f46;
}

.input-group-text {
    background: var(--light-color);
    border-color: var(--border-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.form-text {
    font-size: 0.8rem;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

main {
    min-height: calc(100vh - 200px);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray-color);
}

.alert {
    border: none;
    border-radius: 10px;
}

.badge {
    font-weight: 500;
}

/* Scrollbar styling for sidebar */
.desktop-sidebar .sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.desktop-sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.desktop-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
}

.desktop-sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}
