@font-face {
    font-family: 'google-sans-flex';
    font-style: normal;
    font-weight: 1 1000;
    font-stretch: 25% 151%;
    font-display: swap;
    src: url('https://geniusmonkey.com/fonts/google-sans-flex-v2.woff2') format('woff2');
}

:root {
    /* Fonts - Updated to GeniusMonkey.com Google Sans Flex with fallbacks */
    --font-heading: 'google-sans-flex', 'atrament-web', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'google-sans-flex', 'museo-sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Brand Colors - GeniusMonkey.com Rebrand */
    --primary-color: #f7004e;
    --primary-hover: #ce0041;
    --secondary-color: #10131a;
    --secondary-hover: #232a3a;
    --gm-purple: #7c4dff;
    --gm-blue: #3d8afe;
    --gm-midnight: #020112;
    
    /* UI Colors (Light Mode Default) */
    --bg-color: #f6f7fb;
    --card-bg: #ffffff;
    --surface-subtle: #f8fafc;
    --text-main: #10131a;
    --text-muted: #5b6472;
    --border-color: #e3e6ee;
    
    /* Shared values */
    --border-radius-btn: 999px;
    --border-radius-card: 16px;
    
    /* Status Colors */
    --status-completed: #059669;
    --status-completed-bg: #ecfdf5;
    --status-progress: #f7004e;
    --status-progress-bg: #fff1f5;
    --status-notstarted: #5b6472;
    --status-notstarted-bg: #f1f5f9;
}

::selection {
    background-color: #f7004e;
    color: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.015em;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    background-color: rgba(2, 1, 18, 0.88);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 32px -12px rgba(2, 1, 18, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gm-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.gm-brand-link:hover {
    opacity: 0.85;
}

.gm-brand-logo {
    height: 22px;
    width: auto;
    display: block;
}

.gm-logo-wordmark {
    fill: #ffffff;
    transition: fill 0.2s ease;
}

body.theme-simple .navbar .gm-logo-wordmark {
    fill: #10131a;
}

.brand-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.16);
}

body.theme-simple .brand-divider {
    background: #cbd5e1;
}

.hub-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.theme-simple .hub-brand-badge {
    background: #fff1f5;
    border-color: rgba(247, 0, 78, 0.25);
    color: #10131a;
}

.hub-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #f7004e;
    box-shadow: 0 0 10px #f7004e;
    display: inline-block;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#current-user-display {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.theme-simple #current-user-display {
    color: #0f172a !important;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
}

body.theme-simple .toggle-container {
    color: #334155 !important;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

#toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Main Container */
.container {
    max-width: 1700px;
    width: 96%;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

/* Employee View: Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Slightly softer shadows */
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.course-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--border-color);
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.1em;
    color: var(--text-main);
    text-transform: uppercase;
}

.progress-container {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-overdue {
    background-color: #d32f2f !important;
}

.overdue-card {
    border: 2px solid #d32f2f;
}

.badge-overdue {
    background-color: #ffebee;
    color: #c62828;
}

.overdue-row td {
    background-color: #fffafb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 10px 30px -8px rgba(247, 0, 78, 0.6);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #ffffff;
}

.btn-danger {
    background-color: #d32f2f;
    color: var(--card-bg);
    border-color: #d32f2f;
}

.btn-danger:hover {
    background-color: var(--card-bg);
    color: #d32f2f;
}

/* Search and Filter */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.category-select {
    min-width: 170px;
}

.course-category-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: var(--status-notstarted-bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Admin View */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background-color: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    text-align: center;
}

.kpi-title {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

/* Tabs and Table Management */
.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.page-tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
}

.page-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-table-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-completed {
    background-color: var(--status-completed-bg);
    color: var(--status-completed);
}

.badge-progress {
    background-color: var(--status-progress-bg);
    color: var(--status-progress);
}

.badge-notstarted {
    background-color: var(--status-notstarted-bg);
    color: var(--status-notstarted);
}

.clickable-badge {
    background: var(--bg-color);
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.15s ease-in-out;
}

.clickable-badge:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.table-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-progress .progress-bar-bg {
    width: 100px;
}

/* Modals & Forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-card);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

select,
.form-group select,
.category-select,
.login-select,
.block-callout-type {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23475569%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 1.25rem) center !important;
    background-size: 1rem 1rem !important;
    padding-right: 3rem !important;
    padding-left: 0.85rem !important;
    cursor: pointer;
}

.category-select {
    width: auto;
    min-width: 170px;
}

body.theme-tech select,
body.theme-tech .form-group select,
body.theme-tech .category-select,
body.theme-tech .login-select,
body.theme-tech .block-callout-type {
    background-color: #0b0d14 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a4abb8%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 1.25rem) center !important;
    background-size: 1rem 1rem !important;
    padding-right: 3rem !important;
}

body.theme-tech input[type="text"],
body.theme-tech input[type="email"],
body.theme-tech input[type="password"],
body.theme-tech input[type="date"],
body.theme-tech input[type="tel"],
body.theme-tech input[type="number"],
body.theme-tech input[type="search"],
body.theme-tech .form-group input,
body.theme-tech .search-input,
body.theme-tech textarea,
body.theme-tech .form-group textarea {
    background-color: #0b0d14 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px;
}

body.theme-tech input::placeholder,
body.theme-tech textarea::placeholder {
    color: #737b8a !important;
    opacity: 0.9;
}

body.theme-tech input:focus,
body.theme-tech textarea:focus,
body.theme-tech select:focus {
    border-color: #f7004e !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(247, 0, 78, 0.22) !important;
}

body.theme-tech input[readonly] {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #a4abb8 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Icons and Thumbnails */
.course-icon-thumbnail {
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f3f4;
    border-bottom: 1px solid var(--border-color);
}

.course-icon-thumbnail i {
    font-size: 4rem;
    color: var(--primary-color);
}

.course-icon-thumbnail-small {
    width: 50px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f3f4;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.course-icon-thumbnail-small i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fdfdfd;
}

.icon-option {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.icon-option:hover {
    background-color: #f0f0f0;
}

.icon-option.selected {
    border-color: var(--primary-color);
    background-color: var(--status-completed-bg);
    color: var(--primary-color);
}

/* Module Editor & Course Viewer */
.modal-large {
    max-width: 800px;
}

.modal-xl {
    max-width: 1000px;
}

.content-builder-area {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.builder-block {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    position: relative;
}

.builder-block textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.builder-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.remove-block-btn {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 0.8rem;
}

.builder-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Course Viewer (Employee) */
.course-viewer-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-height: calc(100vh - 160px);
}

.viewer-sidebar {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-y: auto;
    flex-shrink: 0 !important;
    position: sticky;
    top: 90px;
}

.viewer-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
}

.module-nav-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.module-nav-item:hover {
    background-color: #f5f5f5;
}

.module-nav-item.active {
    background-color: var(--secondary-color);
    color: var(--card-bg);
    border-left: 4px solid var(--primary-color);
}

.module-nav-item.completed::after {
    content: "✓";
    margin-left: auto;
    color: var(--primary-color); /* Use orange for completed check */
    font-weight: bold;
}

.module-nav-item.active.completed::after {
    color: white;
}

.viewer-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    overflow-y: visible;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block img, .content-block iframe, .content-block video {
    max-width: 100%;
    border-radius: 8px;
}

.content-block p {
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

/* Remove old markdown styles as Quill provides its own CSS */
.content-block img, .content-block iframe, .content-block video {
    max-width: 100%;
    border-radius: 8px;
}

.content-block h1 { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 1rem; }
.content-block h2 { font-size: 2rem; color: var(--secondary-color); margin-bottom: 1rem; }
.content-block h3 { font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 0.75rem; }

.content-block ul, .content-block ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-block li {
    margin-bottom: 0.5rem;
}

.content-block blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-left: 0;
    color: var(--secondary-color);
    font-style: italic;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius-card) var(--border-radius-card) 0;
}

.content-block code {
    background-color: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.content-block pre {
    background-color: #1f1f1f;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.content-block pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.quiz-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-card);
    margin-top: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.quiz-container h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.quiz-question {
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quiz-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }

/* Login Screen & Google Workspace Auth */
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    padding: 2rem 1rem;
}

.login-card {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-card h1 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 0.35rem;
}

.google-security-notice {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.google-signin-btn {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #747775;
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: Roboto, -apple-system, sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-signin-btn:hover {
    background: #f8fafd;
    border-color: #0052cc;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.2);
    transform: translateY(-1px);
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.user-avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7004e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.login-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Reports */
.chart-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.chart-label {
    width: 250px;
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--secondary-color);
}

.chart-bar-bg {
    flex-grow: 1;
    height: 32px;
    background-color: var(--bg-color);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
}

.chart-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    min-width: 2px;
}

.chart-value {
    position: absolute;
    left: 10px;
    font-size: 0.9rem;
    color: white;
    font-weight: 700;
}

/* ========================================================
   FULL-PAGE COURSE STUDIO & MANAGEMENT STYLES
   ======================================================== */

.course-studio-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Studio Sticky Top Header */
.studio-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: sticky;
    top: 72px;
    z-index: 90;
}

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

.studio-breadcrumbs a, .studio-breadcrumbs button {
    color: var(--secondary-color);
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.studio-breadcrumbs a:hover, .studio-breadcrumbs button:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.studio-breadcrumbs .separator {
    color: #aaa;
}

.studio-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-pill-toggle {
    display: inline-flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 20px;
    padding: 3px;
    border: 1px solid var(--border-color);
}

.status-pill-btn {
    border: none;
    background: transparent;
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.status-pill-btn.active.published {
    background: var(--primary-color);
    color: #ffffff;
}

.status-pill-btn.active.draft {
    background: #e0e0e0;
    color: #333333;
}

/* Studio Navigation Tabs */
.studio-tabs-bar {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    gap: 0.5rem;
    overflow-x: auto;
}

.studio-tab-item {
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.studio-tab-item:hover {
    color: var(--secondary-color);
}

.studio-tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: #ffffff;
}

.studio-tab-content {
    padding: 2.5rem 3rem;
    min-height: 600px;
    width: 100%;
}

/* ========================================================
   CURRICULUM WORKSPACE (2-PANE SPLIT)
   ======================================================== */

.curriculum-workspace {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2.5rem;
    min-height: 650px;
    width: 100%;
}

@media (max-width: 900px) {
    .curriculum-workspace {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Module List */
.curriculum-sidebar-pane {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.curriculum-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.curriculum-sidebar-header h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0;
}

.curriculum-modules-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 600px;
    padding-right: 0.25rem;
    flex-grow: 1;
}

.curriculum-module-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}

.curriculum-module-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.curriculum-module-card.active {
    border-color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    background: #fff8f6;
}

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

.module-card-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-card-reorder {
    display: flex;
    gap: 0.25rem;
}

.module-card-reorder button {
    background: #f1f3f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--text-muted);
}

.module-card-reorder button:hover {
    background: var(--primary-color);
    color: #fff;
}

.module-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

.module-card-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    align-items: center;
}

.module-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.25rem;
    border-top: 1px dashed #eee;
    padding-top: 0.4rem;
}

/* Right Content Studio Pane */
.curriculum-editor-pane {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
}

.module-settings-bar {
    background: #fbfbfb;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.module-settings-grid {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
    .module-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Palette Toolbar */
.block-palette-bar {
    background: #f1f3f4;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.palette-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.palette-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.palette-btn:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.palette-btn i {
    font-size: 1rem;
}

/* ========================================================
   INTERACTIVE SLIDE DECK BUILDER & VIEWER
   ======================================================== */

.slide-deck-builder-box {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.slide-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.slide-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* Slide Deck Interactive Presentation Player */
.slide-player-container {
    background: #10131a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(2, 1, 18, 0.55);
    overflow: hidden;
    color: #ffffff;
    margin: 1.5rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slide-player-screen {
    padding: 2.5rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(60% 80% at 90% 0%, rgba(124, 77, 255, 0.22), transparent 70%),
        radial-gradient(50% 60% at 10% 10%, rgba(247, 0, 78, 0.15), transparent 70%),
        #020112;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-player-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.slide-player-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.slide-player-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.slide-player-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.slide-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.slide-player-callout {
    background: rgba(247, 0, 78, 0.14);
    border: 1px solid rgba(247, 0, 78, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #fda4af;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slide-player-controls {
    background: #10131a;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.slide-nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.slide-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-dots-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slide-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

.slide-counter-badge {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ========================================================
   CALLOUT BANNERS & RESOURCE CARDS
   ======================================================== */

.callout-box {
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.callout-box i {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.callout-box-body h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.callout-box-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.callout-info {
    background: #e6eff4;
    border: 1px solid #b3d1e1;
    color: var(--secondary-color);
}
.callout-info i { color: var(--secondary-color); }

.callout-tip {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.callout-tip i { color: #059669; }

.callout-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.callout-warning i { color: #d97706; }

.callout-policy {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.callout-policy i { color: #dc2626; }

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.resource-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.resource-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.resource-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resource-card-info {
    flex-grow: 1;
    overflow: hidden;
}

.resource-card-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-card-type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================================
   ENHANCED QUIZ STYLES WITH EXPLANATIONS
   ======================================================== */

.quiz-explanation-box {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    background: #f8f9fa;
    border-left: 3px solid var(--secondary-color);
    color: var(--text-main);
}

.quiz-score-banner {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
}

.quiz-score-banner.passed {
    background: #ecfdf5;
    border: 2px solid #10b981;
    color: #065f46;
}

.quiz-score-banner.failed {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

/* ========================================================
   TOAST NOTIFICATION
   ======================================================== */

.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #f7004e;
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(247, 0, 78, 0.45);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================================
   DRATA POLICY COMPLIANCE CARD STYLES
   ======================================================== */

.drata-policy-card {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 14px;
    padding: 1.75rem;
    margin: 1.75rem 0;
    box-shadow: 0 4px 20px rgba(247, 0, 78, 0.08);
    position: relative;
    overflow: hidden;
}

.drata-policy-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

.drata-badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.drata-compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(247, 0, 78, 0.12);
    color: #f7004e;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.drata-policy-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
}

.drata-policy-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.drata-policy-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.drata-policy-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.drata-policy-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.drata-policy-info strong {
    color: var(--secondary-color);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.2rem;
}

.drata-policy-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
}

.drata-action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.drata-btn {
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.drata-btn:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(247, 0, 78, 0.45);
}

/* ========================================================
   ONBOARDING & PROVISIONING CENTER STYLES
   ======================================================== */

.onboarding-banner {
    background: #10131a;
    color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-card);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 12px 32px -12px rgba(2, 1, 18, 0.35);
}

.onboarding-banner h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.onboarding-banner p {
    color: #a4abb8;
    font-size: 0.95rem;
    max-width: 650px;
    margin: 0;
}

.gateway-mode-selector {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    padding: 4px;
    display: flex;
    gap: 4px;
}

.gateway-mode-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.gateway-mode-btn.active.live {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.gateway-mode-btn.active.sim {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(247, 0, 78, 0.5);
}

/* 2-Column Intake Layout */
.intake-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .intake-layout {
        grid-template-columns: 1fr;
    }
}

.intake-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title:first-child {
    margin-top: 0;
}

/* Service Provisioning Checklist Grid */
.checklist-category-block {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

body.theme-tech .checklist-category-block {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.09);
}

.checklist-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.checklist-category-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.theme-tech .checklist-category-title {
    color: #ffffff;
}

.services-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.65rem;
}

.service-toggle-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.service-toggle-item:hover {
    border-color: var(--primary-color);
    background: #fff1f5;
}

body.theme-tech .service-toggle-item {
    background: #0b0d14;
    border-color: rgba(255, 255, 255, 0.11);
}

body.theme-tech .service-toggle-item:hover {
    background: rgba(247, 0, 78, 0.08);
    border-color: #f7004e;
}

.service-toggle-item input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.service-info strong {
    font-size: 0.85rem;
    display: block;
    color: var(--secondary-color);
}

body.theme-tech .service-info strong {
    color: #ffffff;
}

.service-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
    display: block;
    margin-top: 0.15rem;
}

/* Dynamic Department Preview Box */
.dept-preview-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.dept-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.dept-pill {
    background: #f1f5f9;
    color: #10131a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
}

.dept-pill.channel {
    background: #fff1f5;
    color: #ce0041;
    border-color: rgba(247, 0, 78, 0.25);
}

.dept-pill.course {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

/* Orchestration Visualizer Card (Right Column) */
.orchestration-card {
    background: #10131a;
    color: #ffffff;
    border-radius: var(--border-radius-card);
    padding: 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

.orchestration-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.prompt-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.btn-copy-prompt {
    background: rgba(247, 0, 78, 0.16);
    color: #ff4d84;
    border: 1px solid rgba(247, 0, 78, 0.35);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-copy-prompt:hover {
    background: #f7004e;
    color: #ffffff;
    border-color: #f7004e;
    transform: translateY(-1px);
}

.btn-copy-prompt.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

body.theme-simple .btn-copy-prompt {
    background: #fff1f5;
    color: #f7004e;
    border-color: rgba(247, 0, 78, 0.3);
}

body.theme-simple .btn-copy-prompt:hover {
    background: #f7004e;
    color: #ffffff;
}

.prompt-preview-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin: 0.35rem 0 1.25rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #cbd5e1;
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

body.theme-simple .prompt-preview-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.step-card.in-progress {
    border-color: #f7004e;
    background: rgba(247, 0, 78, 0.12);
}

.step-card.completed {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.step-icon-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-card.pending .step-icon-indicator {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.step-card.in-progress .step-icon-indicator {
    background: #f7004e;
    color: #ffffff;
    animation: pulseGlow 1.2s infinite;
}

.step-card.completed .step-icon-indicator {
    background: #10b981;
    color: #ffffff;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.step-card-text strong {
    font-size: 0.85rem;
    color: #e2e8f0;
    display: block;
}

.step-card-text span {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
}

/* History Pipeline Table Badges */
.badge-provisioned {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-pending-day1 {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ========================================================
   DIRECTORY PICKER POPOUT MODAL STYLES
   ======================================================== */

.directory-picker-modal {
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.directory-search-bar {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    z-index: 10;
}

.directory-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow-y: auto;
    max-height: 420px;
    padding-right: 0.25rem;
}

.directory-user-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.directory-user-card:hover {
    border-color: var(--primary-color);
    background: #fff8f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.directory-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f7004e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.directory-user-details {
    margin-left: 0.85rem;
    flex-grow: 1;
}

.directory-user-name {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.directory-user-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================================
   EMPLOYEE ONBOARDING ROADMAP & ACADEMY STYLES
   ======================================================== */

.employee-onboarding-card {
    background: #10131a;
    color: #ffffff;
    border-radius: var(--border-radius-card);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 32px -12px rgba(2, 1, 18, 0.35);
}

.employee-onboarding-card h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.35rem;
}

.employee-onboarding-card p {
    color: #a4abb8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.onboarding-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.onboarding-step-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.onboarding-step-box:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.step-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.step-badge-num {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.step-box-title {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.step-box-desc {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.step-box-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.step-box-action:hover {
    background: var(--primary-color);
}

/* Academy Sub Navigation */
.academy-subnav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.academy-subnav-btn {
    background: #f1f3f4;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.academy-subnav-btn:hover {
    color: var(--secondary-color);
    background: #e2e8f0;
}

.academy-subnav-btn.active {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

/* ========================================================
   THEME: LIGHT MODE (CLEAN HR / PRESERVED CLASSIC LOOK)
   ======================================================== */

body.theme-simple {
    --bg-color: #f6f7fb;
    --card-bg: #ffffff;
    --surface-subtle: #f8fafc;
    --text-main: #10131a;
    --text-muted: #5b6472;
    --border-color: #e3e6ee;
    --primary-color: #f7004e;
    --primary-hover: #ce0041;
    --secondary-color: #10131a;
    --secondary-hover: #232a3a;
    --border-radius-card: 16px;
    background-color: #f6f7fb;
    color: #10131a;
}

body.theme-simple .navbar {
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e3e6ee;
    box-shadow: 0 4px 20px -8px rgba(2, 1, 18, 0.06);
}

body.theme-simple #current-user-display,
body.theme-simple .toggle-container {
    color: #10131a !important;
}

body.theme-simple .login-logo-wrap .gm-logo-wordmark {
    fill: #10131a;
}

body.theme-simple .onboarding-banner {
    background: #ffffff;
    border: 1px solid #e3e6ee;
    color: #10131a;
    box-shadow: 0 12px 32px -16px rgba(2, 1, 18, 0.08);
}

body.theme-simple .onboarding-banner h2 {
    color: #10131a;
}

body.theme-simple .onboarding-banner p {
    color: #5b6472;
}

body.theme-simple .gateway-mode-selector {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

body.theme-simple .gateway-mode-btn {
    color: #475569;
}

body.theme-simple .kpi-card {
    background: #ffffff;
    border: 1px solid #e3e6ee;
    box-shadow: 0 8px 24px -12px rgba(2, 1, 18, 0.06);
}

body.theme-simple .page-tab {
    color: #5b6472;
    border-color: transparent;
    background: transparent;
    border-radius: 999px;
}

body.theme-simple .page-tab:hover:not(.active) {
    color: #10131a;
    background: rgba(16, 19, 26, 0.05);
}

body.theme-simple .page-tab.active {
    border-color: var(--primary-color);
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 6px 20px -4px rgba(247, 0, 78, 0.45);
}

body.theme-simple .orchestration-card {
    background: #ffffff;
    border: 1px solid #e3e6ee;
    color: #10131a;
    box-shadow: 0 12px 32px -16px rgba(2, 1, 18, 0.08);
}

body.theme-simple .orchestration-card h3 {
    color: #10131a;
}

body.theme-simple .step-card {
    background: #f8fafc;
    border: 1px solid #e3e6ee;
    color: #10131a;
}

body.theme-simple .step-card.pending .step-icon-indicator {
    background: #e2e8f0;
    color: #5b6472;
}

body.theme-simple .step-card-text strong {
    color: #10131a;
}

body.theme-simple .step-card-text span {
    color: #5b6472;
}

body.theme-simple #orchestrator-console-log {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #10131a !important;
    font-weight: 600;
}

body.theme-tech #orchestrator-console-log {
    background: rgba(2, 1, 18, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #00e676 !important;
}

body.theme-simple .employee-onboarding-card {
    background: #ffffff;
    border: 1px solid #e3e6ee;
    color: #10131a;
    box-shadow: 0 12px 32px -16px rgba(2, 1, 18, 0.08);
}

body.theme-simple .employee-onboarding-card h2 {
    color: #10131a;
}

body.theme-simple .employee-onboarding-card p {
    color: #5b6472;
}

body.theme-simple .onboarding-step-box {
    background: #f8fafc;
    border: 1px solid #e3e6ee;
}

body.theme-simple .step-box-title {
    color: #10131a;
}

body.theme-simple .step-box-desc {
    color: #5b6472;
}

body.theme-simple .step-box-action {
    background: #e2e8f0;
    color: #10131a;
}

body.theme-simple .step-box-action:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Theme Switcher Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

body.theme-simple .theme-toggle-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #10131a;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: #f7004e;
}

.gm-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    background-color: rgba(247, 0, 78, 0.06);
}

.surface-subtle-box {
    background: var(--surface-subtle, #f8fafc);
}

.login-logo-wrap .gm-brand-logo {
    height: 30px;
    width: auto;
}

/* ========================================================
   CANDIDATE & PRE-HIRE PIPELINE STYLES
   ======================================================== */

.badge-offer-accepted {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-offer-extended {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-interviewing {
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.badge-screening {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.btn-promote {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-promote:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(240, 83, 37, 0.3);
}


/* ========================================================
   AUDIT LOG MODAL STYLES (THEME-ADAPTIVE)
   ======================================================== */

.audit-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

.audit-details-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 8px;
}

.audit-details-card small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.audit-details-card div {
    font-size: 0.95rem;
}

.audit-trace-container {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.audit-trace-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-main);
    font-family: monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.4;
}

.audit-trace-item:last-child {
    border-bottom: none;
}

.audit-trace-icon {
    color: #10b981;
    font-weight: bold;
    flex-shrink: 0;
}

/* Dark mode overrides for Tech Theme */
body.theme-tech .audit-modal-content {
    background: #10131a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-tech .audit-modal-header {
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-tech .audit-modal-header h2 {
    color: #ffffff;
}

body.theme-tech .audit-details-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-tech .audit-trace-container {
    background: rgba(2, 1, 18, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-tech .audit-trace-item {
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.theme-tech .audit-trace-icon {
    color: #00e676;
}

/* ========================================================
   DIRECTORY PAGINATION & WRITE-PROTECTION STYLES
   ======================================================== */

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    flex-wrap: wrap;
    gap: 1rem;
}

body.theme-tech .pagination-bar {
    background: #10131a;
    border-color: rgba(255, 255, 255, 0.1);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pagination-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.directory-write-protect-badge {
    background: #fff1f5;
    border: 1px solid rgba(247, 0, 78, 0.25);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #10131a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

body.theme-tech .directory-write-protect-badge {
    background: rgba(247, 0, 78, 0.08);
    border-color: rgba(247, 0, 78, 0.28);
    color: #fda4af;
}

/* ========================================================
   CANDIDATE NOTES & INTERVIEW LOG MODAL STYLES
   ======================================================== */

.notes-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-bottom: 1.5rem;
}

.note-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

body.theme-tech .note-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.note-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.note-author-badge {
    background: #fff1f5;
    color: #f7004e;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.theme-tech .note-author-badge {
    background: rgba(247, 0, 78, 0.15);
    color: #ff4d84;
}

.note-timestamp {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.note-text-content {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 450;
    white-space: pre-wrap;
    padding: 0.25rem 0;
}

body.theme-tech .note-text-content {
    color: #e2e8f0;
}

.stage-badge-interactive {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stage-badge-interactive:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    filter: brightness(0.95);
}

.btn-promote-disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
    box-shadow: none !important;
    transform: none !important;
}

.note-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.4rem;
    margin-top: 0.25rem;
}

.new-note-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

body.theme-tech .new-note-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================================
   HARDWARE PROVISIONING COMPONENT STYLES
   ======================================================== */

.hw-accessory-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.hw-accessory-item:hover {
    border-color: var(--primary-color);
    background: #fff8f6;
}

.hw-accessory-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary-color);
    margin: 0;
    cursor: pointer;
}

body.theme-tech .hw-accessory-item {
    background: #0b0d14;
    border-color: rgba(255, 255, 255, 0.11);
    color: #e2e8f0;
}

body.theme-tech .hw-accessory-item:hover {
    background: rgba(247, 0, 78, 0.08);
    border-color: #f7004e;
}

/* ========================================================
   LMS VIDEO WATCH GATING & FOCUS STYLES
   ======================================================== */

.video-focus-container {
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.video-focus-container.video-focused {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(240, 83, 37, 0.12);
    background: #fff8f6;
}

.video-focus-container.video-unlocked {
    border-color: #10b981;
    background: #f0fdf4;
}

body.theme-tech .video-focus-container {
    background: #10131a;
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-tech .video-focus-container.video-focused {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(247, 0, 78, 0.2);
    background: rgba(247, 0, 78, 0.05);
}

body.theme-tech .video-focus-container.video-unlocked {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.video-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.video-badge-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.theme-tech .video-badge-tag {
    color: #ff4d84;
}

.gated-content-wrapper {
    position: relative;
    transition: all 0.4s ease;
}

.content-lock-banner {
    transition: all 0.3s ease;
}

/* Custom Unskippable Video Player Controls */
.video-player-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.video-player-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(240, 83, 37, 0.92);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.video-player-overlay-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #f05325;
}

.video-player-overlay-play.playing {
    display: none;
}

.custom-video-controls {
    background: #0f172a;
    color: #ffffff;
    padding: 0.65rem 1rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid #334155;
}

.custom-video-progress-container {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: height 0.15s ease;
}

.custom-video-progress-container:hover {
    height: 11px;
}

.custom-video-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.custom-video-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.custom-video-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.custom-video-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #38bdf8;
}

.custom-video-time {
    font-size: 0.82rem;
    font-family: monospace;
    color: #94a3b8;
    font-weight: 600;
}

/* ========================================================
   THEME: DARK MODE (NEW GENIUSMONKEY.COM WEBSITE DESIGN)
   ======================================================== */

body.theme-tech {
    --bg-color: #020112;
    --card-bg: rgba(16, 19, 26, 0.92);
    --surface-subtle: rgba(255, 255, 255, 0.04);
    --text-main: #ffffff;
    --text-muted: #a4abb8;
    --border-color: rgba(255, 255, 255, 0.11);
    --primary-color: #f7004e;
    --primary-hover: #ce0041;
    --secondary-color: #ffffff;
    --secondary-hover: #3d8afe;
    --border-radius-card: 20px;
    --status-completed: #00e676;
    --status-completed-bg: rgba(0, 230, 118, 0.14);
    --status-progress: #f7004e;
    --status-progress-bg: rgba(247, 0, 78, 0.16);
    --status-notstarted: #a4abb8;
    --status-notstarted-bg: rgba(255, 255, 255, 0.06);

    background-color: #020112;
    background-image:
        radial-gradient(55% 60% at 88% 0%, rgba(124, 77, 255, 0.30) 0%, rgba(124, 77, 255, 0) 70%),
        radial-gradient(40% 50% at 8% 10%, rgba(247, 0, 78, 0.18) 0%, rgba(247, 0, 78, 0) 70%),
        radial-gradient(50% 60% at 50% 110%, rgba(61, 90, 254, 0.16) 0%, rgba(61, 90, 254, 0) 70%);
    background-attachment: fixed;
    color: #ffffff;
    position: relative;
}

/* GeniusMonkey.com Architectural 64px Grid Overlay */
body.theme-tech::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 25%, transparent 85%);
    mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 25%, transparent 85%);
}

body.theme-tech #app-container,
body.theme-tech #login-container {
    position: relative;
    z-index: 2;
}

body.theme-tech #login-container {
    background: transparent;
}

body.theme-tech .login-card {
    background: linear-gradient(#10131a, #10131a) padding-box,
                linear-gradient(135deg, rgba(247, 0, 78, 0.75), rgba(124, 77, 255, 0.35) 50%, rgba(255, 255, 255, 0.08)) border-box;
    border: 1px solid transparent;
    border-radius: 24px;
    box-shadow: 0 32px 80px -24px rgba(2, 1, 18, 0.85), 0 0 60px -20px rgba(124, 77, 255, 0.35);
    backdrop-filter: blur(18px);
}

body.theme-tech .login-logo-wrap .gm-logo-wordmark {
    fill: #ffffff;
}

body.theme-tech .google-security-notice {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #a4abb8;
}

body.theme-tech .btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.theme-tech .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
    color: #ffffff;
}

body.theme-tech .kpi-card {
    background: rgba(16, 19, 26, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px -18px rgba(2, 1, 18, 0.7);
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease;
}

body.theme-tech .kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(247, 0, 78, 0.45);
}

body.theme-tech .page-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(16, 19, 26, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px -15px rgba(2, 1, 18, 0.75);
    margin-bottom: 2rem;
}

body.theme-tech .page-tab {
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    border-bottom: none;
    color: #a4abb8;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

body.theme-tech .page-tab:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

body.theme-tech .page-tab.active {
    color: #ffffff;
    background: #f7004e;
    box-shadow: 0 6px 20px -4px rgba(247, 0, 78, 0.6);
}

body.theme-tech .onboarding-banner,
body.theme-tech .employee-onboarding-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(247, 0, 78, 0.16), transparent 60%),
        radial-gradient(70% 100% at 100% 100%, rgba(124, 77, 255, 0.20), transparent 65%),
        rgba(16, 19, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px -24px rgba(2, 1, 18, 0.85);
}

body.theme-tech .onboarding-banner p,
body.theme-tech .employee-onboarding-card p {
    color: #a4abb8;
}

body.theme-tech .admin-table-container,
body.theme-tech .intake-card,
body.theme-tech .course-card,
body.theme-tech .chart-container,
body.theme-tech .course-studio-wrapper,
body.theme-tech .viewer-sidebar,
body.theme-tech .viewer-content,
body.theme-tech .quiz-container,
body.theme-tech .modal-content {
    background: rgba(16, 19, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px -20px rgba(2, 1, 18, 0.75);
}

body.theme-tech .orchestration-card {
    background: linear-gradient(#10131a, #10131a) padding-box,
                linear-gradient(135deg, rgba(247, 0, 78, 0.75), rgba(124, 77, 255, 0.35) 50%, rgba(255, 255, 255, 0.08)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 24px 60px -20px rgba(2, 1, 18, 0.85);
}

body.theme-tech th {
    background-color: rgba(255, 255, 255, 0.04);
    color: #a4abb8;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-tech td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
}

body.theme-tech tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.025);
}

body.theme-tech .overdue-row td {
    background-color: rgba(247, 0, 78, 0.08);
}

body.theme-tech .dept-preview-box {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-tech .dept-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}

body.theme-tech .dept-pill.channel {
    background: rgba(247, 0, 78, 0.16);
    color: #fda4af;
    border-color: rgba(247, 0, 78, 0.35);
}

body.theme-tech .dept-pill.course {
    background: rgba(124, 77, 255, 0.18);
    color: #ddd6fe;
    border-color: rgba(124, 77, 255, 0.38);
}

body.theme-tech .course-icon-thumbnail,
body.theme-tech .course-icon-thumbnail-small,
body.theme-tech .resource-card-icon {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-tech .studio-topbar,
body.theme-tech .studio-tabs-bar,
body.theme-tech .curriculum-sidebar-pane,
body.theme-tech .curriculum-editor-pane,
body.theme-tech .module-settings-bar,
body.theme-tech .block-palette-bar,
body.theme-tech .content-builder-area,
body.theme-tech .builder-block,
body.theme-tech .slide-deck-builder-box,
body.theme-tech .slide-item-card,
body.theme-tech .resource-card,
body.theme-tech .drata-policy-card,
body.theme-tech .directory-search-bar,
body.theme-tech .directory-user-card {
    background: rgba(16, 19, 26, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

body.theme-tech .curriculum-module-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-tech .curriculum-module-card.active {
    background: rgba(247, 0, 78, 0.12);
    border-color: #f7004e;
}

body.theme-tech .palette-btn,
body.theme-tech .academy-subnav-btn,
body.theme-tech .pagination-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

body.theme-tech .palette-btn:hover,
body.theme-tech .academy-subnav-btn.active,
body.theme-tech .pagination-btn.active {
    background: #f7004e;
    border-color: #f7004e;
    color: #ffffff;
}

body.theme-tech .module-nav-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.theme-tech .module-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.theme-tech .module-nav-item.active {
    background-color: rgba(247, 0, 78, 0.16);
    color: #ffffff;
    border-left: 4px solid #f7004e;
}

body.theme-tech .drata-policy-item,
body.theme-tech .quiz-options label {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

body.theme-tech .ql-toolbar.ql-snow,
body.theme-tech .ql-container.ql-snow {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    color: #ffffff !important;
}

body.theme-tech .ql-snow .ql-stroke {
    stroke: #cbd5e1 !important;
}

body.theme-tech .ql-snow .ql-fill {
    fill: #cbd5e1 !important;
}

body.theme-tech .ql-snow .ql-picker {
    color: #cbd5e1 !important;
}

body.theme-tech [style*="background: #f8fafc"],
body.theme-tech [style*="background: #f8f9fa"],
body.theme-tech [style*="background: #fafafa"],
body.theme-tech [style*="background: #f5f5f5"],
body.theme-tech [style*="background: white"],
body.theme-tech [style*="background: #ffffff"] {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #e2e8f0 !important;
}

body.theme-tech [style*="background: #fff8f6"] {
    background: rgba(247, 0, 78, 0.12) !important;
    color: #ffffff !important;
}










