:root {
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --primary-light: #eef2ff;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--dark) !important;
}
.navbar-brand span {
    color: var(--primary);
}
.nav-link {
    font-weight: 500;
    color: #475569;
    padding: 0.5rem 0.9rem;
    transition: color 0.15s ease-in-out;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}
.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Form Controls */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}
.dashboard-sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    overflow-y: auto;
}
.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    .dashboard-main {
        margin-left: 0;
    }
}

.dashboard-topbar {
    height: 65px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.sidebar-menu {
    list-style: none;
    padding: 0.75rem 0.5rem;
    margin: 0;
}
.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.75rem 1rem 0.25rem;
}
.sidebar-item a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.15s ease;
}
.sidebar-item a i {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    color: #64748b;
    width: 20px;
    text-align: center;
}
.sidebar-item a:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}
.sidebar-item a:hover i {
    color: var(--primary);
}
.sidebar-item.active a {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
.sidebar-item.active a i {
    color: var(--primary);
}

/* QR Studio Styles */
.qr-preview-card {
    position: sticky;
    top: 85px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 1.75rem;
}
.qr-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

/* Stat Widgets */
.stat-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Table Design */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
}
.table td {
    vertical-align: middle;
    font-size: 0.92rem;
}

/* Badges */
.badge-subtle-success {
    background-color: #d1fae5;
    color: #065f46;
}
.badge-subtle-primary {
    background-color: #e0e7ff;
    color: #3730a3;
}
.badge-subtle-warning {
    background-color: #fef3c7;
    color: #92400e;
}
.badge-subtle-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(76, 201, 240, 0.06), transparent 40%);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

