/* Base styles and variables */
:root {
    --bg-color: #0A0A0B; /* Sophisticated Dark */
    --panel-bg: rgba(20, 20, 22, 0.75);
    --panel-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #9ca3af;
    --primary-color: #d4af37; /* Sophisticated Gold */
    --primary-hover: #b5952f;
    --error-color: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.15);
    --input-focus: rgba(212, 175, 55, 0.5);
    --doc-bg: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-color: #f3f4f6;
    --panel-bg: rgba(255, 255, 255, 0.85);
    --panel-border: rgba(0, 0, 0, 0.1);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --primary-color: #3b82f6; 
    --primary-hover: #2563eb;
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(0, 0, 0, 0.2);
    --input-focus: rgba(59, 130, 246, 0.5);
    --doc-bg: rgba(255, 255, 255, 0.9);
}

.sophisticated-card {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .sophisticated-card {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.sophisticated-button-primary {
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem !important;
}

/* Theme Toggle Switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.2);
  transition: .4s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Dynamic Animated Background */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #0ea5e9;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Login Panel - Glassmorphism */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Typography */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.brand-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Form Elements */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.input-group:focus-within label {
    color: var(--text-primary);
}

input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--input-focus);
    background: rgba(15, 23, 42, 0.8);
}

/* Button & Actions */
.action-group {
    margin-top: 32px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

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

.btn-primary.loading {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary.loading .btn-text {
    opacity: 0;
}

.btn-primary.loading .loader {
    display: block;
}

/* Loader Animation */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
    position: absolute;
}

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

.hidden {
    display: none !important;
}

.error-message {
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 20px;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Dashboard Layout */
.dashboard-body {
    display: block;
    background-color: var(--bg-color);
    overflow: hidden;
    /* We will scroll strictly inside main-content */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.glass-panel-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    height: 32px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.text-btn span {
    margin-left: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.btn-danger:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Profile Dropdown */
.profile-menu {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 24px;
    transition: background 0.2s;
    user-select: none;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
}

#nav-username {
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    overflow: hidden;
    z-index: 200;
}

.dropdown-content a {
    display: block;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Base Layout */
.dashboard-container {
    display: flex;
    margin-top: 64px;
    /* offset navbar */
    height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

.glass-panel-side {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--panel-border);
}

.sidebar.collapsed {
    width: 76px;
    border-right: 1px solid var(--panel-border);
    opacity: 1;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-dropdown-icon,
.sidebar.collapsed .nav-group {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 16px 0;
}

.sidebar.collapsed .nav-item svg {
    margin-right: 0;
}

.sidebar.collapsed .nav-submenu {
    display: none !important;
}

/* Nav Dropdown styles */
.nav-dropdown-btn {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    margin-right: 0 !important;
}

.nav-dropdown-btn.open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    padding: 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-submenu.open {
    max-height: 500px;
}

.sub-item {
    padding-left: 54px !important;
}

.nav-links {
    list-style: none;
    padding: 24px 0;
}

.nav-group {
    padding: 16px 24px 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 4px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border-radius: 12px;
}

.nav-item svg {
    margin-right: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

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

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.4) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item.active svg {
    opacity: 1;
    color: #60a5fa;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    background: transparent;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.glass-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Utilities */
.mt-4 {
    margin-top: 1.5rem;
}

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

/* Dashboard Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--panel-border);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

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

/* Specific UI Elements */
.search-bar {
    display: flex;
    gap: 12px;
}

.search-input {
    flex-grow: 1;
}

.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
}

.faq-question {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    overflow-y: auto;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 100%;
    margin: 0 20px;
    max-width: 500px;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(-50px);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.75rem;
}

.w-100 {
    width: 100%;
}

select,
select[multiple] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

select:focus {
    border-color: var(--primary-color);
}

select option {
    background: #1a1a2e;
    color: var(--text-primary);
    padding: 8px;
}

select[multiple] {
    height: auto;
    min-height: 80px;
}

/* Badges */
.badge {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.badge-red {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.badge-gold,
.badge-yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.badge-gray {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* Share Modal List */
.share-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.share-user-row:last-child {
    border-bottom: none;
}

/* --- SEGMENTED CONTROL (Switch between Users/Groups) --- */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.segmented-control button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.segmented-control button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* --- SELECTION & LIST AREA --- */
.share-selection-area {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.share-list-container {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar for the list */
.share-list-container::-webkit-scrollbar {
    width: 6px;
}

.share-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Updated Result Rows */
.share-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.share-user-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.share-user-row:last-child {
    border-bottom: none;
}

/* ========== APP SWITCHER ========== */
.app-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 16px 12px 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.app-switcher:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.app-switcher-menu {
    margin: -4px 12px 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.app-switch-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.app-switch-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.app-switch-option.active {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.app-switch-option svg {
    opacity: 0.7;
}

.app-switch-option.active svg {
    opacity: 1;
}

/* ========== WFA CALENDAR TABLE ========== */
.wfa-calendar-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
}

.wfa-calendar-table thead th {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    font-size: 0.8rem;
    text-align: center;
    padding: 10px 14px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    white-space: nowrap;
}

.wfa-calendar-table td {
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px 12px;
    text-align: center;
    font-size: 0.875rem;
    vertical-align: top;
}

.wfa-cell-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.04);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.wfa-cell-slot:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.wfa-cell-slot.is-me {
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(147, 197, 253, 0.4);
    color: #eff6ff;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wfa-cell-slot.is-me:hover {
    background: rgba(59, 130, 246, 0.35);
}

.wfa-empty-slot {
    color: rgba(148, 163, 184, 0.3);
    font-size: 0.75rem;
    font-style: italic;
}

/* WFA Admin Drag & Drop Visuals */
.is-admin-draggable {
    cursor: grab !important;
}

.is-admin-draggable:active {
    cursor: grabbing !important;
}

.wfa-cell-slot.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    background: rgba(59, 130, 246, 0.3) !important;
}

.wfa-cell-slot.wfa-drop-target {
    background: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 0 2px var(--primary-color);
    transform: scale(1.05);
    transition: transform 0.1s ease;
}

/* Sub-tab segmented control */
.segmented-control {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 20px;
}

.segmented-control button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.segmented-control button.active {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    font-weight: 600;
}

.segmented-control button:hover:not(.active) {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}