/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Dark Theme (Default) Variables */
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #020617 100%);
    --panel-bg: rgba(30, 41, 59, 0.5);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-soft: rgba(99, 102, 241, 0.15);
    --success: #10b981;
    --success-hover: #059669;
    --success-soft: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-soft: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: #818cf8;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);
    --card-hover-border: rgba(99, 102, 241, 0.3);
    --card-hover-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.15);
    
    /* Font family */
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

.light-theme {
    /* Light Theme Variables (macOS Style) */
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --panel-bg: #ffffff;
    --panel-border: rgba(0, 0, 0, 0.12);
    --text-primary: #000000;
    --text-secondary: #1f2937;
    --text-muted: #4b5563;
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --primary-soft: rgba(0, 113, 227, 0.1);
    --success: #34c759;
    --success-hover: #28a745;
    --success-soft: rgba(52, 199, 89, 0.1);
    --warning: #ff9500;
    --warning-hover: #e08200;
    --warning-soft: rgba(255, 149, 0, 0.1);
    --danger: #ff3b30;
    --danger-hover: #e02f26;
    --danger-soft: rgba(255, 59, 48, 0.1);
    --input-bg: #ffffff;
    --input-border: rgba(0, 0, 0, 0.2);
    --input-focus: #0071e3;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --glass-blur: none;
    --card-hover-border: rgba(0, 113, 227, 0.3);
    --card-hover-shadow: 0 12px 40px rgba(0, 113, 227, 0.08);
}

/* Light Theme Modal Backdrop Override */
.light-theme .modal-wrapper {
    background: rgba(0, 0, 0, 0.4) !important;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
html {
    font-size: 106.25%; /* 17px base for slightly larger, clearer text */
}

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

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background 0.5s ease, color 0.3s ease;
}

/* Background Blur Orbs */
.blur-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    transition: all 0.8s ease;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px;
    right: -100px;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(16, 185, 129, 0.2);
    bottom: -150px;
    left: -150px;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.15);
    top: 50%;
    left: 40%;
}

.light-theme .orb-1 { background: rgba(99, 102, 241, 0.15); }
.light-theme .orb-2 { background: rgba(16, 185, 129, 0.1); }
.light-theme .orb-3 { background: rgba(245, 158, 11, 0.08); }

/* Common Helper Classes */
.hidden {
    display: none !important;
}

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

.text-justify {
    text-align: justify;
    line-height: 1.6;
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
.badge-primary {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.badge-success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-warning {
    background: var(--warning-soft);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    outline: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}
.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: var(--success-hover);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: var(--danger-hover);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}
.btn-warning {
    background: var(--warning);
    color: white;
}
.btn-warning:hover {
    background: var(--warning-hover);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}
.light-theme .btn-outline:hover {
    background: rgba(0, 0, 0, 0.03);
}
.btn-full {
    width: 100%;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}
.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
}
.btn-icon-only {
    padding: 8px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
.light-theme .btn-icon-only:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-control {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
    outline: none;
}
.form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.8);
}
.light-theme .form-control:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
textarea.form-control {
    resize: vertical;
}
select.form-control option {
    background-color: #0f172a;
    color: white;
}
.light-theme select.form-control option {
    background-color: white;
    color: #0f172a;
}

/* ==========================================================================
   AUTHENTICATION PAGE STYLES
   ========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 42px 36px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(24px);
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-card .auth-form {
    display: grid;
    gap: 18px;
}
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.6px;
}
.logo-icon {
    color: var(--primary);
    font-size: 2.3rem;
}
.accent-text {
    background: linear-gradient(to right, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-header p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.auth-form .form-group {
    margin-bottom: 0;
}
.auth-form .form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.auth-form .form-control {
    min-height: 52px;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 0.96rem;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}
.auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
    background: rgba(255, 255, 255, 0.12);
}
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrapper input {
    padding-right: 50px;
}
.toggle-password {
    position: absolute;
    right: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 10px;
    transition: all 0.2s ease;
}
.toggle-password:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
}
.auth-error {
    color: var(--danger);
    font-size: 0.82rem;
    min-height: 18px;
    margin-bottom: 4px;
    font-weight: 500;
    text-align: left;
}
.auth-switch {
    text-align: center;
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}
.auth-switch a:hover {
    text-decoration: underline;
}
.auth-form .btn-full {
    border-radius: 14px;
    padding: 14px 18px;
}
.auth-form .btn-full i {
    font-size: 0.98rem;
}

/* Light Theme Overrides for Authentication Card */
.light-theme .auth-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}
.light-theme .auth-form .form-control {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: #000000;
}
.light-theme .auth-form .form-control::placeholder {
    color: rgba(0, 0, 0, 0.45);
}
.light-theme .auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}
.light-theme .toggle-password {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
}
.light-theme .toggle-password:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

/* ==========================================================================
   APP WRAPPER & SIDEBAR
   ========================================================================== */
.app-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    border-radius: 0 24px 24px 0;
    border-left: none;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 10;
}
.sidebar-header {
    margin-bottom: 35px;
}
.sidebar-header .logo {
    justify-content: flex-start;
    font-size: 1.4rem;
}
.user-profile-side {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.light-theme .user-profile-side {
    background: rgba(99, 102, 241, 0.05);
}
.user-profile-side .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}
.user-profile-side .avatar i {
    font-size: 2.2rem;
    color: var(--primary);
    display: block;
}
.user-profile-side .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.user-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.light-theme .nav-item:hover {
    background: rgba(99, 102, 241, 0.05);
}
.nav-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding-left: 13px;
}
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--panel-border);
    padding-top: 20px;
}
.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    text-align: left;
    transition: all 0.2;
}
.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.sidebar-btn.logout:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    padding: 40px;
    overflow-y: auto;
    max-height: 100vh;
}
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.header-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.header-title p {
    font-size: 0.9rem;
}

/* Dashboard Views Sections */
.content-section {
    animation: fadeIn 0.4s ease-out;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}
.border-left-primary { border-left: 4px solid var(--primary); }
.border-left-success { border-left: 4px solid var(--success); }
.border-left-warning { border-left: 4px solid var(--warning); }
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.bg-primary-soft { background: var(--primary-soft); }
.bg-success-soft { background: var(--success-soft); }
.bg-warning-soft { background: var(--warning-soft); }
.stat-data {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Component */
.filter-card {
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}
.search-box input {
    padding-left: 46px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding-top: 12px;
    padding-bottom: 12px;
    transition: all 0.2s;
    width: 100%;
    outline: none;
}
.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.filters-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.filter-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Meetings Grid */
.meetings-list-wrapper {
    margin-top: 20px;
}
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.list-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}
.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    min-height: 200px;
}

.chart-card {
    padding: 28px;
    margin-bottom: 24px;
}
.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.chart-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}
.chart-card-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}
.chart-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-wrapper canvas {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 300px;
}

/* Meeting Cards */
.meeting-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}
.meeting-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}
.meeting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.meeting-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.meeting-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.meeting-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.meeting-meta-row i {
    width: 16px;
    color: var(--primary);
}
.meeting-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--panel-border);
    padding-top: 14px;
    margin-top: auto;
}
.meeting-participants-preview {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
    gap: 4px;
}
.meeting-participants-preview i {
    color: var(--text-muted);
}
.attachments-count {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed var(--panel-border);
    border-radius: 16px;
    color: var(--text-secondary);
}
.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   FORM VIEW & MULTI-SELECT COMBO BOX
   ========================================================================== */
.form-card {
    padding: 35px;
}
.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.form-card-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
}
.meeting-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.form-col-left, .form-col-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 16px;
}
.form-row-2-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.radio-toggle-group {
    display: flex;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 4px;
    border-radius: 10px;
    width: 100%;
}
.radio-toggle-group input[type="radio"] {
    display: none;
}
.radio-toggle-group label {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.radio-toggle-group input[type="radio"]:checked + label {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Custom Multi-select Combo Box */
.custom-combo-box {
    position: relative;
    width: 100%;
}
.combo-trigger {
    min-height: 48px;
    padding: 8px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s;
}
.combo-trigger:focus-within, .combo-trigger.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.selected-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    max-width: calc(100% - 24px);
}
.placeholder-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.participant-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}
.participant-tag i {
    cursor: pointer;
    color: var(--primary);
    transition: opacity 0.2s;
}
.participant-tag i:hover {
    opacity: 0.7;
}
.combo-trigger .arrow-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.combo-trigger.active .arrow-icon {
    transform: rotate(180deg);
}

/* Dropdown Options */
.combo-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
}
.combo-search-wrapper {
    position: relative;
}
.search-inner-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.combo-search-wrapper input {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 8px 12px 8px 34px;
    font-family: var(--font-main);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
}
.combo-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 8px;
}
.combo-options-list {
    list-style: none;
    overflow-y: auto;
    max-height: 140px;
    display: flex;
    flex-direction: column;
}
.combo-options-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
    user-select: none;
}
.combo-options-list li:hover {
    background: rgba(255, 255, 255, 0.05);
}
.light-theme .combo-options-list li:hover {
    background: rgba(99, 102, 241, 0.05);
}
.combo-options-list li input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.combo-add-custom {
    display: flex;
    gap: 6px;
    border-top: 1px solid var(--panel-border);
    padding-top: 10px;
    margin-top: auto;
}
.combo-add-custom input {
    flex: 1;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.8rem;
    outline: none;
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed var(--input-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.file-upload-zone:hover, .file-upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.upload-icon {
    font-size: 2.2rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.file-upload-zone:hover .upload-icon {
    color: var(--primary);
}
.file-upload-zone p {
    font-size: 0.88rem;
}
.file-upload-zone p span {
    color: var(--primary);
    font-weight: 600;
}
.file-rules {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.file-input-hidden {
    display: none;
}
.file-list-preview {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    font-size: 0.82rem;
}
.light-theme .file-preview-item {
    background: rgba(255, 255, 255, 0.9);
}
.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}
.file-info i {
    color: var(--primary);
    font-size: 1rem;
}
.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}
.file-size {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 6px;
}

/* Form Actions Footer */
.form-actions-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--panel-border);
    padding-top: 24px;
    margin-top: 10px;
}

/* ==========================================================================
   DETAIL MODAL & VIEWER
   ========================================================================== */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 17, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-content {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-meta {
    display: flex;
    gap: 8px;
}
.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: var(--font-main);
}
.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px;
}
.light-theme .detail-meta-grid {
    background: rgba(99, 102, 241, 0.03);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}
.meta-item i {
    font-size: 1.2rem;
    color: var(--primary);
}
.meta-item div {
    display: flex;
    flex-direction: column;
}
.meta-item strong {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.detail-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.participants-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.detail-participant-tag {
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--panel-border);
}
.light-theme .detail-participant-tag {
    background: #ffffff;
}
.detail-text-block {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    padding: 10px 0;
}
.highlight-block {
    background: var(--success-soft);
    border-left: 4px solid var(--success);
    padding: 16px;
    border-radius: 0 12px 12px 0;
    color: var(--text-primary);
}
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.attachment-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}
.light-theme .attachment-link {
    background: #ffffff;
}
.attachment-link:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateX(4px);
}
.attachment-image-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
}
.attachment-image-preview {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.attachment-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--panel-border);
    padding-top: 20px;
}
.modal-footer .left-actions {
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   TOAST SYSTEM
   ========================================================================== */
.toast-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 280px;
    max-width: 400px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: var(--glass-blur);
}
.toast-success {
    background: rgba(6, 78, 59, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}
.toast-danger {
    background: rgba(127, 29, 29, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
}
.toast-warning {
    background: rgba(120, 53, 4, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fef3c7;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .app-wrapper {
        grid-template-columns: 1fr;
    }
    .sidebar {
        height: auto;
        position: relative;
        border-radius: 0;
        padding: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .sidebar-header {
        margin-bottom: 0;
    }
    .user-profile-side, .sidebar-nav, .sidebar-footer span {
        display: none;
    }
    .sidebar-footer {
        flex-direction: row;
        border-top: none;
        padding-top: 0;
    }
    .main-content {
        padding: 20px;
    }
    .meeting-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .header-actions {
        width: 100%;
    }
    .header-actions button {
        width: 100%;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 20px;
    }
    .modal-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .modal-footer .left-actions {
        justify-content: space-between;
    }
}

/* ==========================================================================
   ADMIN SETTINGS PAGE STYLES
   ========================================================================== */
.grid-two-column {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.panel {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 24px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.panel-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    flex: 1;
}

.table thead {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid var(--panel-border);
    position: sticky;
    top: 0;
}

.light-theme .table thead {
    background: rgba(99, 102, 241, 0.05);
}

.table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid var(--panel-border);
    transition: all 0.2s;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.light-theme .table tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

.table td {
    padding: 14px 16px;
    color: var(--text-primary);
    vertical-align: middle;
}

.table td:first-child {
    font-weight: 600;
}

.table .role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.role-badge.member {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

#admin-users-form-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-radius: 16px;
}

#admin-users-form-panel .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#admin-users-form-panel .form-group label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#admin-users-form-panel .form-group label i {
    color: var(--primary);
    font-size: 1.1rem;
    background: rgba(99, 102, 241, 0.2);
    padding: 8px;
    border-radius: 8px;
}

#admin-users-form-panel .form-control {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(79, 70, 229, 0.04));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    padding: 16px 18px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.97rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(99, 102, 241, 0.05);
}

#admin-users-form-panel .form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

#admin-users-form-panel .form-control:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(79, 70, 229, 0.08));
    box-shadow: inset 0 2px 4px rgba(99, 102, 241, 0.08), 0 4px 16px rgba(99, 102, 241, 0.12);
}

#admin-users-form-panel .form-control:focus {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.1));
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), inset 0 2px 8px rgba(99, 102, 241, 0.15), 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-3px) scaleX(1.01);
}

.light-theme #admin-users-form-panel {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, rgba(99, 102, 241, 0.01) 100%);
}

.light-theme #admin-users-form-panel .form-control {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(99, 102, 241, 0.05));
    border-color: rgba(99, 102, 241, 0.3);
}

.light-theme #admin-users-form-panel .form-control:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #ffffff, rgba(99, 102, 241, 0.08));
    box-shadow: inset 0 2px 4px rgba(99, 102, 241, 0.08), 0 4px 16px rgba(99, 102, 241, 0.08);
}

.light-theme #admin-users-form-panel .form-control:focus {
    background: linear-gradient(135deg, #ffffff, rgba(99, 102, 241, 0.1));
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), inset 0 2px 8px rgba(99, 102, 241, 0.08), 0 8px 24px rgba(99, 102, 241, 0.12);
}

#admin-users-form-panel .form-actions-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 2px solid rgba(99, 102, 241, 0.2);
    padding-top: 24px;
    margin-top: auto;
}

#admin-users-form-panel .btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#admin-users-form-panel .btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

#admin-users-form-panel .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, var(--primary));
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
}

#admin-users-form-panel .btn-outline {
    background: transparent;
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
}

#admin-users-form-panel .btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.form-group {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .grid-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 10px 12px;
    }
}

/* ==========================================================================
   USER PROFILE PHOTO & AVATAR STYLES
   ========================================================================== */
.user-profile-side .avatar {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-soft);
    background: rgba(255, 255, 255, 0.05);
}

.user-profile-side .avatar i {
    font-size: 2rem;
}

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

/* User list table avatar */
.user-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    overflow: hidden;
}

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

.user-info-td {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-info-name {
    font-weight: 700;
    color: var(--text-primary);
}

.user-info-username {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.user-contact-td {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
}

.user-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.user-contact-item i {
    width: 14px;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Photo Uploader Component */
.profile-photo-uploader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.avatar-preview-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px dashed var(--primary-soft);
    background: rgba(99, 102, 241, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.avatar-preview-wrapper:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.avatar-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

.avatar-placeholder i {
    font-size: 1.8rem;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: white;
    font-size: 1.2rem;
}

.avatar-preview-wrapper:hover .avatar-overlay {
    opacity: 1;
}

/* Style fixes for table action button */
.btn-table-action {
    padding: 6px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.btn-table-action:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   ACTION DROPDOWN MENU
   ========================================================================== */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.btn-action-trigger {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    outline: none;
}

.btn-action-trigger:hover, .btn-action-trigger.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.action-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 100;
    min-width: 145px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fadeInScale 0.15s ease-out;
}

.light-theme .action-dropdown-menu {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
    width: 100%;
    outline: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.light-theme .dropdown-item:hover {
    background: rgba(0, 113, 227, 0.08);
    color: var(--primary);
}

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

.dropdown-item.text-danger:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.dark-theme .dropdown-item.text-danger:hover {
    color: #fecaca;
}

/* ==========================================================================
   USER & PARTICIPANT MASTER TABLES (TABEL DATA MASTER)
   ========================================================================== */
.user-table th, .user-table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--panel-border) !important;
}
.user-table tbody tr:last-child td {
    border-bottom: none !important;
}
.user-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.light-theme .user-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}
.user-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--panel-border);
    flex-shrink: 0;
}
.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-avatar-circle i {
    font-size: 1.8rem;
    color: var(--primary);
}
.user-info-td {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.user-info-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.light-theme .user-info-name {
    color: #000000;
}
.user-info-username {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.user-contact-td {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.user-contact-item i {
    color: var(--primary);
    width: 12px;
    font-size: 0.8rem;
}

/* Link lampiran pada laporan rapat: Kuning di Mode Gelap, Merah di Mode Terang */
.report-attach-link {
    color: #ffd000; /* Kuning di Mode Gelap */
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    transition: opacity 0.2s, color 0.2s;
}

.report-attach-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

body.light-theme .report-attach-link {
    color: #ff3b30; /* Merah di Mode Terang */
}

/* Custom Dropdown Item for Searchable Single-Select Dropdown */
.dropdown-item-custom {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.dropdown-item-custom:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

body.light-theme .dropdown-item-custom:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000000;
}

/* Latar belakang solid (non-transparan) untuk dropdown pencarian peserta */
#rep-part-dropdown {
    background: #151f32 !important; /* Biru gelap solid di Mode Gelap */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.light-theme #rep-part-dropdown {
    background: #ffffff !important; /* Putih solid di Mode Terang */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   BACKGROUND WAVES & FLOATING AUTH THEME SWITCHER
   ========================================================================== */
.background-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.85;
}
.background-waves svg {
    width: 100%;
    height: 100%;
}
.wave-path {
    fill: none;
    stroke-width: 2px;
    transition: stroke 0.5s ease;
    animation: wave-float 20s ease-in-out infinite alternate;
    transform-origin: center;
}
.wave-path.path-1 {
    stroke: rgba(99, 102, 241, 0.12);
    animation-duration: 25s;
}
.wave-path.path-2 {
    stroke: rgba(16, 185, 129, 0.08);
    animation-duration: 35s;
    animation-delay: -5s;
}
.wave-path.path-3 {
    stroke: rgba(129, 140, 248, 0.06);
    animation-duration: 45s;
    animation-delay: -10s;
}

.light-theme .wave-path.path-1 {
    stroke: rgba(0, 113, 227, 0.08);
}
.light-theme .wave-path.path-2 {
    stroke: rgba(52, 199, 89, 0.06);
}
.light-theme .wave-path.path-3 {
    stroke: rgba(0, 113, 227, 0.04);
}

@keyframes wave-float {
    0% {
        transform: scaleY(0.95) translateY(-15px) rotate(-0.5deg);
    }
    100% {
        transform: scaleY(1.05) translateY(15px) rotate(0.5deg);
    }
}

/* Floating Auth Theme Switcher */
.auth-theme-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}
.auth-theme-btn {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-theme-btn:hover {
    transform: scale(1.08) rotate(15deg);
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.light-theme .auth-theme-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #000000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.light-theme .auth-theme-btn:hover {
    border-color: #0071e3;
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.2);
}




