/**
 * SC Attendance - Professional Light Theme Design
 * Modern UI with Animations
 */

/* =====================================================
   CSS Variables - Light Theme
===================================================== */
:root {
    /* Primary Colors - Blue/Purple Gradient */
    --primary: #667eea;
    --primary-dark: #764ba2;
    --primary-light: #8b9cf4;
    --primary-rgb: 102, 126, 234;

    /* Accent - Purple */
    --accent: #764ba2;
    --accent-dark: #5a3d7a;
    --accent-rgb: 118, 75, 162;

    /* Secondary */
    --secondary: #64748b;

    /* Status Colors */
    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);

    /* Light Theme Colors */
    --bg-body: #f1f5f9;
    --bg-sidebar: #1e293b;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #ffffff;
    --bg-table-header: #f8fafc;
    --bg-table-row: #ffffff;
    --bg-table-row-alt: #f8fafc;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-sidebar: #ffffff;

    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Gray Scale (for light theme) */
    --dark: #1e293b;
    --light: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    /* Design Tokens */
    --font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* =====================================================
   Base Styles
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Lists */
ul, ol {
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.25rem;
}

/* Paragraphs */
p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Small text */
small, .small {
    font-size: 0.85rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   Auth Pages (Login, Register, Forgot Password)
===================================================== */
.sca-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.sca-auth-card {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

.sca-auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sca-auth-logo img {
    max-height: 80px;
    animation: pulse 2s ease-in-out infinite;
}

.sca-auth-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sca-auth-logo p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
}

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

.sca-auth-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.sca-auth-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    font-size: 1rem;
}

.sca-auth-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
}

.sca-auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    background: var(--bg-input);
}

.sca-auth-form .form-control::placeholder {
    color: var(--text-muted);
}

.sca-auth-form .input-icon {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition);
}

.sca-auth-form .form-group:focus-within .input-icon {
    color: var(--primary);
}

.sca-auth-form .btn-primary {
    width: 100%;
    padding: 1.125rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.sca-auth-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.sca-auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.sca-auth-form .btn-primary:hover::before {
    left: 100%;
}

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

.sca-auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sca-auth-links a {
    color: var(--primary);
    font-weight: 600;
}

.sca-auth-links a:hover {
    text-decoration: underline;
}

.sca-auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sca-auth-divider::before,
.sca-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.sca-auth-divider span {
    padding: 0 1rem;
}

/* =====================================================
   Dashboard Layout
===================================================== */
.sca-dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sca-sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    color: #fff;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sca-sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sca-sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sca-sidebar-logo img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
}

.sca-sidebar-logo h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.sca-sidebar-logo span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sca-sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

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

.sca-sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sca-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

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

.sca-nav-section {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.sca-nav-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.sca-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
    transition: var(--transition);
    position: relative;
}

.sca-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sca-nav-item.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.sca-nav-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.sca-nav-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

.sca-nav-item .badge {
    margin-right: auto;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50px;
    font-weight: 600;
}

.sca-nav-item .sca-nav-arrow {
    margin-right: auto;
    font-size: 0.8rem;
    transition: var(--transition);
}

.sca-nav-group.open .sca-nav-arrow {
    transform: rotate(-180deg);
}

.sca-nav-submenu {
    display: none;
    padding-right: 2.5rem;
    margin-top: 0.25rem;
}

.sca-nav-group.open .sca-nav-submenu {
    display: block;
}

.sca-nav-submenu .sca-nav-item {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
    position: relative;
}

.sca-nav-submenu .sca-nav-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.sca-nav-submenu .sca-nav-item.active::before,
.sca-nav-submenu .sca-nav-item:hover::before {
    background: var(--accent);
}

.sca-nav-submenu .sca-nav-item.active {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

/* Sidebar User */
.sca-sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sca-sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.sca-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sca-sidebar-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sca-sidebar-user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Logout Button */
.sca-nav-item.sca-logout {
    color: var(--danger);
    margin-top: 0.5rem;
}

.sca-nav-item.sca-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Main Content */
.sca-main {
    flex: 1;
    margin-right: 280px;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.sca-header {
    background: var(--bg-header);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.sca-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sca-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sca-header-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sca-header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sca-header-user-info {
    text-align: right;
}

.sca-header-user-greeting {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sca-header-user-name {
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
}

.sca-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sca-breadcrumb a {
    color: var(--text-muted);
}

.sca-breadcrumb a:hover {
    color: var(--accent);
}

.sca-breadcrumb .separator {
    color: var(--border-color);
}

.sca-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

.sca-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sca-header-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.sca-header-btn:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
    border-color: var(--accent);
}

.sca-header-btn .badge {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Content Area */
.sca-content {
    padding: 2rem;
    flex: 1;
}

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

.sca-page-header {
    margin-bottom: 2rem;
    animation: fadeInDown 0.5s ease;
    text-align: center;
}

.sca-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sca-page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sca-page-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.sca-page-notice.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.sca-page-notice.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

/* =====================================================
   Cards
===================================================== */
.sca-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.sca-card:hover {
    border-color: var(--border-light);
}

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

.sca-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sca-card-title i {
    color: var(--primary);
}

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

.sca-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--gray-100);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Stats Cards */
.sca-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sca-stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sca-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

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

.sca-stat-card:hover::before {
    transform: scaleX(1);
}

.sca-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.sca-stat-icon.primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.sca-stat-icon.success { background: linear-gradient(135deg, var(--success), #16a34a); }
.sca-stat-icon.warning { background: linear-gradient(135deg, var(--warning), #d97706); }
.sca-stat-icon.danger { background: linear-gradient(135deg, var(--danger), #dc2626); }
.sca-stat-icon.info { background: linear-gradient(135deg, var(--info), #2563eb); }

.sca-stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.sca-stat-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.sca-stat-change {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sca-stat-change.up { color: var(--success); }
.sca-stat-change.down { color: var(--danger); }

/* =====================================================
   Tables
===================================================== */
.sca-table-container {
    overflow-x: auto;
}

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

.sca-table th {
    background: var(--gray-50);
    padding: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-align: right;
    white-space: nowrap;
    border-bottom: 2px solid var(--gray-200);
}

.sca-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

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

.sca-table tbody tr:hover {
    background: var(--gray-50);
}

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

/* =====================================================
   Buttons
===================================================== */
.sca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.sca-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sca-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.sca-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    color: #fff;
}

.sca-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.sca-btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.sca-btn-success {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: #fff;
}

.sca-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    color: #fff;
}

.sca-btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
}

.sca-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    color: #fff;
}

.sca-btn-outline {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
}

.sca-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sca-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.sca-btn-lg {
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
}

.sca-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* =====================================================
   Forms
===================================================== */
.sca-form-group {
    margin-bottom: 1.5rem;
}

.sca-form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sca-form-label .required {
    color: var(--danger);
}

.sca-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    background: #fff;
    color: var(--gray-700);
    transition: var(--transition);
}

.sca-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.sca-form-control::placeholder {
    color: var(--gray-400);
}

.sca-form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

textarea.sca-form-control {
    min-height: 120px;
    resize: vertical;
}

select.sca-form-control {
    cursor: pointer;
}

.sca-form-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.sca-form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.5rem;
}

/* =====================================================
   Badges
===================================================== */
.sca-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.sca-badge-primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.sca-badge-success {
    background: var(--success-light);
    color: var(--success);
}

.sca-badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.sca-badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.sca-badge-info {
    background: var(--info-light);
    color: var(--info);
}

/* =====================================================
   Alerts
===================================================== */
.sca-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: fadeInDown 0.3s ease;
}

.sca-alert i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.sca-alert-content {
    flex: 1;
}

.sca-alert-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.sca-alert-success {
    background: var(--success-light);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.sca-alert-danger {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.sca-alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.sca-alert-info {
    background: var(--info-light);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.sca-alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.sca-alert-close:hover {
    opacity: 1;
}

/* =====================================================
   Dashboard Alerts Panel
===================================================== */
.sca-alerts-card {
    border: 2px solid var(--warning);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.sca-alerts-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.sca-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sca-alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-sm);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.sca-alert-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sca-alert-item.sca-alert-danger {
    border-right: 4px solid var(--danger);
}

.sca-alert-item.sca-alert-warning {
    border-right: 4px solid var(--warning);
}

.sca-alert-item.sca-alert-info {
    border-right: 4px solid var(--info);
}

.sca-alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sca-alert-danger .sca-alert-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.sca-alert-warning .sca-alert-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.sca-alert-info .sca-alert-icon {
    background: var(--info-light);
    color: var(--info);
}

.sca-alert-content {
    flex: 1;
    min-width: 0;
}

.sca-alert-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.sca-alert-title strong {
    font-size: 0.95rem;
    color: var(--gray-800);
}

.sca-alert-message {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.sca-alert-action {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .sca-alert-item {
        flex-wrap: wrap;
    }

    .sca-alert-action {
        width: 100%;
        margin-top: 0.5rem;
    }

    .sca-alert-action .btn {
        width: 100%;
    }
}

/* =====================================================
   Empty State
===================================================== */
.sca-empty {
    text-align: center;
    padding: 3rem 2rem;
}

.sca-empty-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sca-empty h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.sca-empty p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* =====================================================
   Loading
===================================================== */
.sca-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.sca-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sca-loading-spinner {
    text-align: center;
}

.sca-loading-spinner .sca-loading {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.sca-loading-spinner p {
    margin-top: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* =====================================================
   Animations
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    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-fade-in-up { animation: fadeInUp 0.5s ease; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease; }
.animate-slide-up { animation: slideUp 0.5s ease; }
.animate-slide-in-right { animation: slideInRight 0.5s ease; }
.animate-scale-in { animation: scaleIn 0.3s ease; }

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* =====================================================
   QR Code Scanner
===================================================== */
.sca-qr-scanner {
    background: var(--dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.sca-qr-scanner video {
    width: 100%;
    display: block;
}

.sca-qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary);
    border-radius: var(--border-radius);
    animation: qrPulse 2s ease-in-out infinite;
}

@keyframes qrPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(var(--primary-rgb), 0);
    }
}

.sca-qr-result {
    padding: 1.5rem;
    text-align: center;
}

.sca-qr-result.success {
    background: var(--success-light);
}

.sca-qr-result.error {
    background: var(--danger-light);
}

/* =====================================================
   Student Cards
===================================================== */
.sca-student-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.sca-student-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: var(--transition);
}

.sca-student-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.sca-student-card-qr {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.sca-student-card-qr img {
    width: 100%;
    height: 100%;
}

.sca-student-card-info {
    flex: 1;
}

.sca-student-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sca-student-card-group {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* =====================================================
   Mobile Toggle
===================================================== */
.sca-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sca-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: var(--transition);
}

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 1024px) {
    .sca-sidebar {
        transform: translateX(100%);
    }

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

    .sca-main {
        margin-right: 0;
    }

    .sca-mobile-toggle {
        display: flex;
    }

    .sca-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .sca-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

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

    .sca-header {
        padding: 1rem;
    }

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

    .sca-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sca-auth-card {
        padding: 1.5rem;
    }

    .sca-page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sca-auth-wrapper {
        padding: 1rem;
    }

    .sca-btn {
        width: 100%;
        justify-content: center;
    }

    .sca-table th,
    .sca-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* =====================================================
   Print Styles
===================================================== */
@media print {
    .sca-sidebar,
    .sca-header,
    .sca-btn,
    .no-print {
        display: none !important;
    }

    .sca-main {
        margin: 0 !important;
    }

    .sca-content {
        padding: 0 !important;
    }

    .sca-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* =====================================================
   Utilities
===================================================== */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-white { color: #fff !important; }
.text-light { color: var(--text-primary) !important; }

.bg-primary-light { background: rgba(var(--primary-rgb), 0.15) !important; }
.bg-success-light { background: var(--success-light) !important; }
.bg-danger-light { background: var(--danger-light) !important; }
.bg-warning-light { background: var(--warning-light) !important; }
.bg-info-light { background: var(--info-light) !important; }
.bg-accent-light { background: rgba(var(--accent-rgb), 0.15) !important; }

/* Progress Bar */
.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: var(--bg-input);
    border-radius: var(--border-radius-sm);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
}

.progress-bar.bg-success {
    background: var(--gradient-success) !important;
}

.progress-bar.bg-danger {
    background: var(--gradient-danger) !important;
}

.progress-bar.bg-primary {
    background: var(--gradient-primary) !important;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }

.gap-1 { gap: 0.5rem !important; }
.gap-2 { gap: 1rem !important; }
.gap-3 { gap: 1.5rem !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }

.shadow { box-shadow: var(--shadow) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* =====================================================
   Auth Page Styles (New)
===================================================== */
.sca-auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.sca-floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.sca-floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatElement 20s ease-in-out infinite;
}

.sca-floating-element:nth-child(1) { top: 10%; right: 10%; animation-delay: 0s; }
.sca-floating-element:nth-child(2) { top: 60%; right: 30%; animation-delay: -5s; width: 150px; height: 150px; }
.sca-floating-element:nth-child(3) { top: 30%; left: 10%; animation-delay: -10s; width: 80px; height: 80px; }
.sca-floating-element:nth-child(4) { bottom: 20%; left: 20%; animation-delay: -15s; width: 120px; height: 120px; }
.sca-floating-element:nth-child(5) { bottom: 40%; right: 15%; animation-delay: -7s; width: 60px; height: 60px; }

@keyframes floatElement {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(90deg); }
    50% { transform: translate(-10px, 20px) rotate(180deg); }
    75% { transform: translate(30px, 10px) rotate(270deg); }
}

.sca-auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.sca-auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.sca-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sca-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.sca-required {
    color: var(--danger);
    margin-right: 0.25rem;
}

.sca-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3.25rem;
    font-size: 1.05rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    background: var(--light);
    color: var(--gray-700);
    transition: var(--transition);
}

.sca-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    background: #fff;
}

.sca-input::placeholder {
    color: var(--gray-400);
}

.sca-input-icon {
    position: relative;
}

.sca-input-icon > i:first-child {
    position: absolute;
    top: 50%;
    right: 1.1rem;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition);
}

.sca-input-icon:focus-within > i:first-child {
    color: var(--primary);
}

.sca-input-password .sca-password-toggle {
    position: absolute;
    top: 50%;
    left: 1.1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: var(--transition);
}

.sca-input-password .sca-password-toggle:hover {
    color: var(--primary);
}

/* OTP Input Styles */
.sca-otp-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    direction: ltr;
    margin: 1.5rem 0;
}

.sca-otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
}

.sca-otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.sca-otp-input.is-invalid {
    border-color: var(--danger);
}

.sca-resend-otp {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.sca-resend-otp:hover:not(.disabled) {
    text-decoration: underline;
}

.sca-resend-otp.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.sca-resend-countdown {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.sca-otp-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sca-otp-info .email-highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Steps Indicator */
.sca-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.sca-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sca-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sca-step.active .sca-step-number {
    background: var(--gradient-primary);
    color: #fff;
}

.sca-step.completed .sca-step-number {
    background: var(--success);
    color: #fff;
}

.sca-step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: none;
}

.sca-step.active .sca-step-label,
.sca-step.completed .sca-step-label {
    color: var(--text-primary);
}

.sca-step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 0.5rem;
}

.sca-step-line.completed {
    background: var(--success);
}

@media (min-width: 480px) {
    .sca-step-label {
        display: block;
    }

    .sca-otp-input {
        width: 55px;
        height: 65px;
    }
}

/* Gender Radio Cards */
.sca-gender-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.sca-radio-card {
    flex: 1;
    cursor: pointer;
}

.sca-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sca-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.sca-radio-content i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.sca-radio-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.sca-radio-card:hover .sca-radio-content {
    border-color: var(--primary-light);
}

.sca-radio-card input[type="radio"]:checked + .sca-radio-content {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.sca-radio-card input[type="radio"]:checked + .sca-radio-content i,
.sca-radio-card input[type="radio"]:checked + .sca-radio-content span {
    color: var(--primary);
}

/* Textarea Styles */
.sca-textarea {
    min-height: 100px;
    resize: vertical;
    padding: 0.75rem 1rem !important;
    line-height: 1.6;
}

/* Form Row - Two Columns */
.sca-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .sca-form-row-2 {
        grid-template-columns: 1fr;
    }

    .sca-gender-options {
        flex-direction: column;
    }
}

/* Email Info Display */
.sca-email-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    direction: ltr;
}

.sca-email-info i {
    color: var(--primary);
}

.sca-email-info span {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* OTP Hint */
.sca-otp-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Label Center */
.sca-label-center {
    text-align: center;
    display: block;
}

/* Resend Section */
.sca-resend-section {
    text-align: center;
    margin-top: 1.5rem;
}

.sca-resend-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.sca-resend-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.sca-resend-link:hover {
    text-decoration: underline;
}

.sca-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sca-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .sca-form-row-2 {
        grid-template-columns: 1fr;
    }
}

.sca-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.sca-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.sca-link {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.sca-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.sca-btn-block {
    width: 100%;
    justify-content: center;
}

.sca-auth-link {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.sca-auth-link a {
    color: var(--primary);
    font-weight: 600;
    margin-right: 0.25rem;
}

.sca-auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.sca-auth-footer p {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin: 0;
}

/* =====================================================
   Dashboard Page Styles (New)
===================================================== */
.sca-dashboard-page {
    background: var(--gray-100);
}

.sca-layout {
    display: flex;
    min-height: 100vh;
}

.sca-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Preloader */
.sca-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sca-preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.sca-preloader-spinner {
    text-align: center;
}

.sca-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.sca-spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Sidebar Enhancements */
.sca-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sca-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    justify-content: center;
}

.sca-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.sca-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.sca-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.sca-sidebar-close:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .sca-sidebar-close {
        display: block;
    }
}

.sca-sidebar-user {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sca-sidebar-user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.sca-sidebar-user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.sca-sidebar-footer {
    padding: 1rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation */
.sca-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sca-nav::-webkit-scrollbar {
    width: 6px;
}

.sca-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sca-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sca-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Firefox scrollbar */
.sca-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

.sca-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.sca-nav-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.sca-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sca-nav-item.active {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-light);
}

.sca-nav-item.active::before {
    transform: scaleY(1);
}

.sca-nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sca-nav-group .sca-nav-arrow {
    margin-right: auto;
    font-size: 0.75rem;
    transition: var(--transition);
}

.sca-nav-group.open .sca-nav-arrow {
    transform: rotate(180deg);
}

.sca-nav-submenu {
    display: none;
    padding-right: 1rem;
}

.sca-nav-group.open .sca-nav-submenu {
    display: block;
}

.sca-nav-subitem {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem 0.625rem 2.5rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sca-nav-subitem:hover {
    color: #fff;
}

.sca-nav-subitem i {
    font-size: 0.8rem;
    width: 20px;
}

.sca-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 1.5rem;
}

.sca-nav-label {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

/* Header */
.sca-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sca-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--border-radius-sm);
    color: var(--gray-600);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.sca-sidebar-toggle:hover {
    background: var(--gray-200);
    color: var(--primary);
}

@media (max-width: 991px) {
    .sca-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.sca-header-title {
    flex: 1;
}

.sca-header-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.sca-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sca-header-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.sca-header-action:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.sca-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    padding-left: 1rem;
    background: var(--gray-100);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.sca-header-user:hover {
    background: var(--gray-200);
}

.sca-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.sca-header-user-info {
    text-align: right;
}

.sca-header-user-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.sca-header-user-role {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.sca-header-user > i:last-child {
    color: var(--gray-400);
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Dropdown */
.sca-dropdown {
    position: relative;
}

.sca-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.sca-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sca-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.sca-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.sca-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gray-400);
}

.sca-dropdown-item:hover i {
    color: var(--primary);
}

.sca-dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.5rem 0;
}

.sca-dropdown-danger {
    color: var(--danger);
}

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

.sca-dropdown-danger i {
    color: var(--danger);
}

/* Breadcrumb */
.sca-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.sca-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    text-decoration: none;
}

.sca-breadcrumb-item:hover {
    color: var(--primary);
}

.sca-breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--gray-300);
    margin-right: 0.5rem;
}

.sca-breadcrumb-active {
    color: var(--gray-700);
    font-weight: 600;
}

/* Footer */
.sca-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.sca-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sca-footer-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.sca-footer-version {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Overlay */
.sca-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Mobile sidebar open state */
@media (max-width: 991px) {
    .sca-sidebar {
        transform: translateX(100%);
    }

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

/* Content adjustments */
.sca-content {
    flex: 1;
    padding: 2rem;
}

.sca-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 280px;
    transition: var(--transition);
    min-height: 100vh;
}

@media (max-width: 991px) {
    .sca-main {
        margin-right: 0;
    }
}

/* =====================================================
   Bootstrap-Compatible Grid System
===================================================== */
.container,
.container-fluid {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-sm-3 { flex: 0 0 auto; width: 25%; }
    .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-sm-9 { flex: 0 0 auto; width: 75%; }
    .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1200px) {
    .col-xl-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-xl-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
    .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-xl-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-xl-6 { flex: 0 0 auto; width: 50%; }
    .col-xl-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-xl-9 { flex: 0 0 auto; width: 75%; }
    .col-xl-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-xl-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1400px) {
    .col-xxl-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-xxl-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-xxl-3 { flex: 0 0 auto; width: 25%; }
    .col-xxl-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-xxl-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-xxl-6 { flex: 0 0 auto; width: 50%; }
    .col-xxl-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-xxl-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-xxl-9 { flex: 0 0 auto; width: 75%; }
    .col-xxl-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-xxl-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-xxl-12 { flex: 0 0 auto; width: 100%; }
}

/* =====================================================
   Bootstrap-Compatible Cards
===================================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Colored Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-danger,
.card.bg-info {
    border: none;
}

.card.bg-primary { background: var(--gradient-primary) !important; }
.card.bg-success { background: var(--gradient-success) !important; }
.card.bg-warning { background: linear-gradient(135deg, var(--warning), #d97706) !important; }
.card.bg-danger { background: var(--gradient-danger) !important; }
.card.bg-info { background: linear-gradient(135deg, var(--info), #2563eb) !important; }

.card.bg-primary .card-title,
.card.bg-success .card-title,
.card.bg-danger .card-title,
.card.bg-info .card-title {
    color: #fff;
}

.card.bg-warning .card-title {
    color: #000;
}

/* Stat Card Icon */
.card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.card .icon svg {
    width: 50px;
    height: 50px;
}

/* =====================================================
   Bootstrap-Compatible Forms - Dark Theme
===================================================== */
.form-control {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-input);
    background-clip: padding-box;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    appearance: none;
}

.form-control:focus {
    color: var(--text-primary);
    background-color: var(--bg-input);
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--bg-card);
    opacity: 0.7;
    cursor: not-allowed;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-text {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-input);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 16px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    appearance: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.form-select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.5rem;
    padding-right: 0;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    vertical-align: top;
    background-color: var(--bg-input);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 2px solid var(--border-color);
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.form-check-input[type="checkbox"] {
    border-radius: 6px;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

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

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Toggle Switch */
.form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1.5rem;
    background-color: var(--border-color);
    border: none;
    position: relative;
    cursor: pointer;
}

.form-switch .form-check-input::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: calc(1.5rem - 6px);
    height: calc(1.5rem - 6px);
    border-radius: 50%;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.form-switch .form-check-input:checked {
    background: var(--gradient-success);
}

.form-switch .form-check-input:checked::before {
    right: calc(100% - 1.5rem + 3px);
    background-color: #fff;
}

/* =====================================================
   Bootstrap-Compatible Buttons - Dark Theme
===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn:disabled,
.btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    color: #fff;
}

.btn-secondary {
    color: var(--text-primary);
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-success {
    color: #fff;
    background: var(--gradient-success);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    color: #fff;
}

.btn-danger {
    color: #fff;
    background: var(--gradient-danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    color: #fff;
}

.btn-warning {
    color: #000;
    background: linear-gradient(135deg, var(--warning), #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-info {
    color: #fff;
    background: linear-gradient(135deg, var(--info), #2563eb);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-light {
    color: var(--text-primary);
    background-color: var(--bg-card-hover);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background-color: var(--border-light);
}

.btn-dark {
    color: #fff;
    background-color: var(--dark);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
    border-color: var(--border-light);
}

.btn-outline-danger {
    color: var(--danger);
    border: 2px solid var(--danger);
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background: var(--gradient-danger);
    border-color: transparent;
}

.btn-outline-success {
    color: var(--success);
    border: 2px solid var(--success);
    background-color: transparent;
}

.btn-outline-success:hover {
    color: #fff;
    background: var(--gradient-success);
    border-color: transparent;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Icon Buttons */
.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--border-radius-sm);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

.btn-icon.btn-lg {
    width: 52px;
    height: 52px;
}

/* =====================================================
   Bootstrap-Compatible Tables
===================================================== */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-primary);
    vertical-align: top;
    border-color: var(--border-color);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table > :not(caption) > * > * {
    padding: 1rem 1.25rem;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
}

.table > thead {
    vertical-align: bottom;
}

.table > thead > tr > th {
    background: var(--bg-table-header);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table > tbody > tr {
    transition: var(--transition);
    background-color: var(--bg-table-row);
}

.table > tbody > tr:nth-of-type(odd) {
    background-color: var(--bg-table-row-alt);
}

.table > tbody > tr:hover {
    background-color: var(--bg-card-hover);
}

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

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--bg-table-row-alt);
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--bg-card-hover);
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered > :not(caption) > * > * {
    border: 1px solid var(--border-color);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.table-responsive .table {
    margin-bottom: 0;
    border-radius: 0;
}

/* Table Dark Header */
.table-dark,
thead.table-dark {
    background-color: var(--dark);
    color: #fff;
}

thead.table-dark th {
    background-color: var(--dark);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   Bootstrap-Compatible Utilities
===================================================== */
/* Spacing */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

.me-1 { margin-left: 0.25rem !important; }
.me-2 { margin-left: 0.5rem !important; }
.me-3 { margin-left: 1rem !important; }
.me-4 { margin-left: 1.5rem !important; }
.me-auto { margin-left: auto !important; }

.ms-1 { margin-right: 0.25rem !important; }
.ms-2 { margin-right: 0.5rem !important; }
.ms-3 { margin-right: 1rem !important; }
.ms-4 { margin-right: 1.5rem !important; }
.ms-auto { margin-right: auto !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; }

.px-0 { padding-right: 0 !important; padding-left: 0 !important; }
.px-1 { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
.px-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

.pe-1 { padding-left: 0.25rem !important; }
.pe-2 { padding-left: 0.5rem !important; }
.pe-3 { padding-left: 1rem !important; }

.ps-1 { padding-right: 0.25rem !important; }
.ps-2 { padding-right: 0.5rem !important; }
.ps-3 { padding-right: 1rem !important; }

/* Text */
.text-start { text-align: right !important; }
.text-end { text-align: left !important; }
.text-center { text-align: center !important; }

.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

.text-decoration-none { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }

/* Colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-light { color: var(--light) !important; }
.text-dark { color: var(--dark) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-white { color: #fff !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-light { background-color: var(--bg-card) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-white { background-color: var(--bg-card) !important; }
.bg-transparent { background-color: transparent !important; }

/* Display */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

/* Flexbox */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }

.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }

.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }

.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* Borders */
.border { border: 1px solid var(--gray-200) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--gray-200) !important; }
.border-end { border-left: 1px solid var(--gray-200) !important; }
.border-bottom { border-bottom: 1px solid var(--gray-200) !important; }
.border-start { border-right: 1px solid var(--gray-200) !important; }

.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }
.border-success { border-color: var(--success) !important; }
.border-danger { border-color: var(--danger) !important; }

.rounded { border-radius: var(--border-radius-sm) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: 4px !important; }
.rounded-2 { border-radius: 8px !important; }
.rounded-3 { border-radius: 12px !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

/* Sizing */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

/* Font Sizes */
.fs-12 { font-size: 0.75rem !important; }
.fs-14 { font-size: 0.875rem !important; }
.fs-16 { font-size: 1rem !important; }
.fs-18 { font-size: 1.125rem !important; }
.fs-20 { font-size: 1.25rem !important; }
.fs-24 { font-size: 1.5rem !important; }
.fs-28 { font-size: 1.75rem !important; }
.fs-32 { font-size: 2rem !important; }
.fs-36 { font-size: 2.25rem !important; }
.fs-40 { font-size: 2.5rem !important; }

/* Font Weights */
.font-w300, .fw-light { font-weight: 300 !important; }
.font-w400, .fw-normal { font-weight: 400 !important; }
.font-w500, .fw-medium { font-weight: 500 !important; }
.font-w600, .fw-semibold { font-weight: 600 !important; }
.font-w700, .fw-bold { font-weight: 700 !important; }
.font-w800, .fw-bolder { font-weight: 800 !important; }

/* Position */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.top-100 { top: 100% !important; }

.bottom-0 { bottom: 0 !important; }
.bottom-50 { bottom: 50% !important; }
.bottom-100 { bottom: 100% !important; }

.start-0 { right: 0 !important; }
.start-50 { right: 50% !important; }
.start-100 { right: 100% !important; }

.end-0 { left: 0 !important; }
.end-50 { left: 50% !important; }
.end-100 { left: 100% !important; }

.translate-middle {
    transform: translate(50%, -50%) !important;
}

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Overflow */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Other */
.img-fluid { max-width: 100%; height: auto; }
.img-thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    max-width: 100%;
    height: auto;
}

hr {
    margin: 1.5rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid var(--gray-200);
    opacity: 1;
}

small,
.small {
    font-size: 0.875em;
}

/* =====================================================
   Bootstrap-Compatible Badges
===================================================== */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50px;
}

.bg-primary.badge { background-color: var(--primary) !important; color: #fff; }
.bg-secondary.badge { background-color: var(--secondary) !important; color: #fff; }
.bg-success.badge { background-color: var(--success) !important; color: #fff; }
.bg-danger.badge { background-color: var(--danger) !important; color: #fff; }
.bg-warning.badge { background-color: var(--warning) !important; color: #000; }
.bg-info.badge { background-color: var(--info) !important; color: #fff; }
.bg-light.badge { background-color: var(--bg-card) !important; color: var(--text-primary); }
.bg-dark.badge { background-color: var(--dark) !important; color: #fff; }

/* =====================================================
   Bootstrap-Compatible Alerts
===================================================== */
.alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-primary {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

.alert-secondary {
    color: #41464b;
    background-color: #e2e3e5;
    border-color: #d3d6d8;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert-dismissible {
    padding-left: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}

/* =====================================================
   Bootstrap-Compatible Modals
===================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    pointer-events: none;
    max-width: 500px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--bg-card);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: 0;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal-title {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: var(--text-secondary);
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 1;
}

/* =====================================================
   Bootstrap-Compatible Input Groups
===================================================== */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control,
.input-group > .form-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group > .form-control:focus,
.input-group > .form-select:focus {
    z-index: 3;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bg-table-header);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-right: -2px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* =====================================================
   Avatar Upload Styling
===================================================== */
.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-upload img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow);
}
