:root {
    /* Main Colors - Sophisticated Dark Teal/Blue Palette */
    --primary-color: #2c7da0;
    --primary-color-rgb: 44, 125, 160;
    --primary-dark: #1b5a74;
    --primary-light: #3a8fb7;
    --accent-color: #2a9d8f;
    --success-color: #287c5a;
    --success-color-dark: #1a5c40;
    --warning-color: #cc8925;
    --danger-color: #a83240;
    --danger-color-dark: #7d2632;
    --secondary-color: #344966;
    
    /* Dark Theme Colors - Deep Dark Blue-Gray */
    --background: #0a0f16;
    --background-alt: #111821;
    --text-color: #adbac7;
    --text-light: #768390;
    --border-color: rgba(118, 131, 144, 0.15);
    --divider-color: rgba(118, 131, 144, 0.07);
    
    /* UI Elements */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 18px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.15);
    --shadow-outset: 0 4px 20px rgba(0, 0, 0, 0.2);
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2c7da0, #1b5a74);
    --gradient-accent: linear-gradient(135deg, #2a9d8f, #1e736a);
    --gradient-success: linear-gradient(135deg, #287c5a, #1a5c40);
    --gradient-warning: linear-gradient(135deg, #cc8925, #9e6a1d);
    --gradient-danger: linear-gradient(135deg, #a83240, #7d2632);
    --gradient-secondary: linear-gradient(135deg, #344966, #24344b);
    --gradient-dark: linear-gradient(135deg, #111821, #0a0f16);
}

/* Light Theme Override - Enhanced */
[data-theme="light"] {
    --background: #f8fafc;
    --background-alt: #f1f5f9;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: rgba(100, 116, 139, 0.2);
    --divider-color: rgba(100, 116, 139, 0.1);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-outset: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Global Reset with improved typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.01em;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--background-alt);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-success:hover {
    background: var(--success-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* Enhanced Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--accent-color);
}

/* Enhanced Form Elements */
input, textarea, select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-alt);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-inset);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

input::placeholder, textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Page title */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.page-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Search box */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    padding-right: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background-color: var(--background-alt);
    transition: var(--transition);
    font-size: 1rem;
    height: 50px;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-search:hover {
    color: var(--primary-color);
}

/* Sidebar Styles - Completely Redesigned */
.global-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #070c13; /* Slightly darker than background for contrast */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

.sidebar-logo img {
    max-height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu ul li {
    margin: 2px 0;
}

.sidebar-menu ul li a {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.sidebar-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.2);
}

.sidebar-menu ul li a.active {
    background: rgba(var(--primary-color-rgb), 0.15);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
}

.sidebar-menu ul li a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.sidebar-menu ul li a:hover i {
    transform: translateX(2px);
}

.sidebar-menu ul li a span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebar-footer-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    display: none;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: none;
}

.sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Badge styling for sidebar */
.sidebar-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--danger-color);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 5px rgba(168, 50, 64, 0.3);
    vertical-align: middle;
    line-height: 1;
}

.sidebar-new-badge.tiny {
    font-size: 8px;
    padding: 1px 3px;
    min-width: 12px;
    height: 12px;
}

.sidebar-new-badge.small {
    font-size: 9px;
    padding: 2px 4px;
    min-width: 16px;
    height: 16px;
}

.sidebar-new-badge.medium {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 20px;
    height: 20px;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes badge-blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes badge-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

@keyframes badge-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-1px); }
    20%, 40%, 60%, 80% { transform: translateX(1px); }
}

@keyframes badge-glow {
    0% { box-shadow: 0 0 5px rgba(168, 50, 64, 0.7); }
    50% { box-shadow: 0 0 15px rgba(168, 50, 64, 0.9); }
    100% { box-shadow: 0 0 5px rgba(168, 50, 64, 0.7); }
}

.sidebar-new-badge[data-animation="pulse"] {
    animation: badge-pulse 1.5s infinite;
}

.sidebar-new-badge[data-animation="blink"] {
    animation: badge-blink 1s infinite;
}

.sidebar-new-badge[data-animation="bounce"] {
    animation: badge-bounce 2s infinite;
}

.sidebar-new-badge[data-animation="shake"] {
    animation: badge-shake 2.5s infinite;
}

.sidebar-new-badge[data-animation="glow"] {
    animation: badge-glow 1.5s infinite;
}

.badge-notification {
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    margin-left: 5px;
}

/* FAQ specific styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.faq-content {
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--background-alt);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    color: var(--text-light);
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 0px solid var(--border-color);
}

.faq-item.active .faq-answer {
    border-top: 1px solid var(--border-color);
}

.answer-content {
    padding: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Support section */
.support-section {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.support-section h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.support-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* Mark for search highlighting */
mark {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-color);
    padding: 0 2px;
    border-radius: 2px;
}

/* Alert styles */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-left: 4px solid;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

.alert-success {
    background-color: rgba(40, 124, 90, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-error, .alert-danger {
    background-color: rgba(168, 50, 64, 0.1);
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.alert-info {
    background-color: rgba(44, 125, 160, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.alert-warning {
    background-color: rgba(204, 137, 37, 0.1);
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

/* Table styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--background-alt);
    font-weight: 600;
    color: var(--text-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: var(--background-alt);
}

/* Card styles - simplified for transparency */
.card {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divider-color);
}

.card-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.card-footer {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--divider-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 2rem 1rem;
}

.auth-card {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    background-color: var(--background-alt);
    box-shadow: var(--shadow-lg);
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form .form-control {
    padding-left: 2.8rem;
}

.auth-form .form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin: 50px auto;
    width: 90%;
    max-width: 600px;
}

.modal-content {
    background-color: var(--background-alt);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.2rem;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

/* Badge styling */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(40, 124, 90, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(204, 137, 37, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(168, 50, 64, 0.1);
    color: var(--danger-color);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background-color: rgba(40, 124, 90, 0.1);
    color: var(--success-color);
}

.status-badge.inactive {
    background-color: rgba(168, 50, 64, 0.1);
    color: var(--danger-color);
}

.status-badge.pending {
    background-color: rgba(204, 137, 37, 0.1);
    color: var(--warning-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--border-radius);
    background-color: var(--background-alt);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Tabs */
.tabs-container {
    margin-bottom: 2rem;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.tab-button.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 350px;
    background-color: var(--background-alt);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.toast-notification.success {
    border-left-color: var(--success-color);
}

.toast-notification.success i {
    color: var(--success-color);
}

.toast-notification.error {
    border-left-color: var(--danger-color);
}

.toast-notification.error i {
    color: var(--danger-color);
}

.toast-notification .toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-notification .toast-message {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Header & Page Layout */
.page-wrapper {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    flex: 1;
    padding: 1.5rem;
    background-color: var(--background);
    width: 100%;
    box-sizing: border-box;
}

/* Notification Center */
.notification-container {
    position: relative;
    margin-right: 0.5rem;
}

.notification-link {
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background-alt);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.notification-link:hover {
    background-color: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Profile & Wallet */
.user-dropdown {
    position: relative;
    z-index: 1000;
}

.user-avatar {
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background-alt);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.user-avatar:hover {
    background-color: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wallet-balance-display {
    font-weight: 600;
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--background-alt);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    margin-right: 0.5rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.wallet-balance-display:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

/* Dark mode toggle style */
.dark-mode-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-checkbox {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
}

.dark-mode-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: linear-gradient(45deg, #121e2b, #0d1622);
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0 5px;
}

.dark-mode-label:hover {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.dark-mode-label .fa-moon {
    color: #94A3B8;
    font-size: 14px;
}

.dark-mode-label .fa-sun {
    color: #FCD34D;
    font-size: 14px;
}

.dark-mode-label .ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4B5563, #6B7280);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dark-mode-checkbox:checked + .dark-mode-label {
    background: linear-gradient(45deg, #1b5a74, #2c7da0);
}

.dark-mode-checkbox:checked + .dark-mode-label .ball {
    transform: translateX(30px);
    background: linear-gradient(45deg, #3a8fb7, #61b0d5);
}

/* Product Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--background-alt);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* Filter Container */
.filter-container {
    background-color: var(--background-alt);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Custom Checkboxes and Radios */
.custom-control {
    position: relative;
    padding-left: 1.75rem;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.custom-control-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    display: inline-block;
    color: var(--text-color);
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.75rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
}

.custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -1.75rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background: no-repeat 50% / 50% 50%;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.custom-radio .custom-control-label::before {
    border-radius: 50%;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* Utility classes */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-light { color: var(--text-light) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }

.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .global-sidebar {
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        width: 280px;
    }
    
    .global-sidebar.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .page-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .header-actions .dark-mode-toggle {
        display: none;
    }
    
    main {
        width: 100%;
        padding: 1.5rem 1rem;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (min-width: 992px) {
    .profile-dark-mode {
        display: none;
    }
    
    .header-actions .dark-mode-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .mobile-logo {
        display: block;
    }
    
    .desktop-header-info {
        display: none;
    }
    
    .notification-container {
        display: flex;
    }
    
    .wallet-balance-display {
        padding: 0.3rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .global-sidebar {
        width: 280px;
    }
    
    .sidebar-menu {
        padding-bottom: 60px;
    }
    
    main {
        padding: 1.5rem 0.75rem;
    }
    
    .sidebar-toggle {
        width: 38px;
        height: 38px;
        top: 10px;
        left: 10px;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .search-input {
        height: 45px;
        font-size: 0.95rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .answer-content {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .support-section {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 30px auto;
    }
    
    .toast-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .profile-popup, 
    .notification-popup {
        top: 60px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: 280px;
    }
    
    .container {
        width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .sidebar-footer {
        padding: 10px;
        position: absolute;
        bottom: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .page-title h1 {
        font-size: 1.6rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .pagination a {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .sidebar-toggle {
        width: 36px;
        height: 36px;
        top: 10px;
        left: 10px;
        font-size: 0.9rem;
    }
    
    .global-sidebar {
        width: 260px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .sidebar-toggle {
        display: flex;
    }
    
    main {
        padding-left: 2.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .global-sidebar {
        width: 280px;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .global-sidebar.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar-menu {
        height: calc(100% - 150px);
        padding-bottom: 60px;
    }
    
    .page-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .header-actions .dark-mode-toggle {
        display: none;
    }
    
    .profile-dark-mode {
        display: flex;
    }
    
    .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .search-input {
        height: 40px;
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem 0.25rem;
    }
    
    .sidebar-toggle {
        top: 10px;
        left: 10px;
        width: 36px;
        height: 36px;
    }
    
    header {
        padding: 0.5rem 0.5rem;
    }
    
    .wallet-balance-display {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .sidebar-menu {
        height: calc(100% - 120px);
        padding-bottom: 60px;
    }
    
    .sidebar-footer {
        padding: 10px;
    }
    
    main {
        width: 100%;
        padding: 1rem 0.5rem;
        box-sizing: border-box;
    }
}

noscript .page-loader {
    display: none;
}

noscript .global-sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

noscript .page-wrapper {
    margin-left: 250px;
}

noscript .sidebar-toggle,
noscript .sidebar-close {
    display: none;
}

@media (max-width: 991px) {
    noscript .global-sidebar {
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    noscript .page-wrapper {
        margin-left: 0;
    }
}