@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: "Newsreader", Georgia, "Times New Roman", serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container.admin {
    max-width: 1000px;
}

.logo {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #c9a96e;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: "Newsreader", Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card.centered {
    text-align: center;
}

h1 {
    font-size: 1.75rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 0.01em;
}

h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #fff;
}

.subtitle {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Centered page layout (login, success, error) */
.page-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 0;
    background: radial-gradient(ellipse at 50% 30%, #141414 0%, #0a0a0a 70%);
}

.page-centered .card {
    max-width: 440px;
    width: 100%;
    border-color: #1e1e1e;
}

.page-centered .logo {
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    margin-bottom: 0.75rem;
}

.page-centered .logo::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
    margin: 1rem auto 0;
}

.page-centered h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.page-centered p {
    color: #999;
    line-height: 1.7;
    font-size: 0.9rem;
}

.page-centered .btn {
    margin-top: 0.5rem;
}

.upload-info {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #888;
}

.upload-info p {
    margin-bottom: 0.25rem;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #555;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

.char-counter.near {
    color: #f1c40f;
}

.char-counter.limit {
    color: #e74c3c;
}

.customer-description {
    white-space: pre-wrap;
    line-height: 1.7;
    color: #ccc;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1rem;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #c9a96e;
    background: rgba(201, 169, 110, 0.05);
}

.drop-icon {
    font-size: 2rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.drop-zone-text {
    color: #888;
}

.file-label {
    color: #c9a96e;
    cursor: pointer;
    text-decoration: underline;
}

.file-input {
    display: none;
}

/* File list */
.file-list {
    margin-bottom: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.file-item .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 1rem;
}

.file-item .file-size {
    color: #888;
    margin-right: 1rem;
    white-space: nowrap;
}

.file-item .remove-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.25rem;
}

.file-item .remove-btn:hover {
    color: #e74c3c;
}

/* Progress */
.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #c9a96e;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.875rem;
    color: #888;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
    background: #222;
    border-color: #444;
}

.btn-primary {
    background: #c9a96e;
    border-color: #c9a96e;
    color: #0a0a0a;
    font-weight: 600;
    width: 100%;
    text-align: center;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: #d4b87a;
    border-color: #d4b87a;
    box-shadow: 0 2px 12px rgba(201, 169, 110, 0.2);
}

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

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-inline {
    width: auto;
}

/* Inputs */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.input:focus {
    outline: none;
    border-color: #c9a96e;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08);
}

.textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Error */
.error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Disk usage */
.disk-usage {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.disk-bar {
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.disk-fill {
    height: 100%;
    background: #c9a96e;
    border-radius: 4px;
    transition: width 0.3s;
}

.disk-fill-warn {
    background: #e74c3c;
}

.disk-label {
    font-size: 0.8rem;
    color: #888;
}

/* Admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
}

.admin-header .logo {
    margin-bottom: 0;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.admin-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    border: none;
    background: none;
}

.admin-nav a:hover {
    color: #e0e0e0;
    background: #1a1a1a;
}

.admin-nav a.active {
    color: #c9a96e;
    background: rgba(201, 169, 110, 0.08);
}

.admin-nav .nav-divider {
    width: 1px;
    height: 16px;
    background: #222;
    margin: 0 0.25rem;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #222;
    color: #666;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.875rem;
}

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

.table tbody tr {
    transition: background 0.1s;
}

.table tbody tr:hover {
    background: rgba(201, 169, 110, 0.03);
}

.action-cell {
    display: flex;
    gap: 0.5rem;
}

.text-muted {
    color: #666;
    font-size: 0.8rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.badge-uploaded {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.badge-reviewed {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.badge-expired {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.countdown-timer {
    font-variant-numeric: tabular-nums;
    color: #2ecc71;
}

.countdown-urgent {
    color: #e74c3c;
}

/* Session detail */
.session-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.session-details {
    display: grid;
    gap: 0.75rem;
}

.detail {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.detail .label {
    color: #888;
    min-width: 100px;
    flex-shrink: 0;
}

.upload-link code {
    background: #1a1a1a;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    word-break: break-all;
}

/* Media grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.media-item {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.media-item img,
.media-item video {
    width: 100%;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

.media-info {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.filesize {
    color: #888;
    white-space: nowrap;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.25rem;
    line-height: 1;
}

.remove-file-btn:hover {
    color: #e74c3c;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header-row h2 {
    margin-bottom: 0;
}

.btn-danger {
    color: #e74c3c;
    border-color: #e74c3c30;
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.action-bar {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.upload-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-state {
    color: #555;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* Admin page title */
.admin-page-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.25rem;
}

.admin-page-subtitle {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Card section header with rule */
.card > h2 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #1a1a1a;
}

/* Help text under inputs */
.form-help {
    color: #555;
    font-size: 0.78rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.form-help code {
    background: #1a1a1a;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #999;
}

.code-block {
    background: #1a1a1a;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.8rem;
    overflow-x: auto;
    color: #ccc;
    line-height: 1.6;
    border: 1px solid #222;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: -0.5rem;
    background: none;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
}

#lightbox-media img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

#lightbox-media video {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 4px;
}

.lightbox-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: #999;
    font-size: 0.875rem;
}

/* Upload area */
.upload-area {
    border: 1px dashed #333;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    margin-bottom: 0.5rem;
    background: #111;
}

.upload-area p {
    color: #777;
    font-size: 0.875rem;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #c9a96e;
    background: rgba(201, 169, 110, 0.03);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.05);
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: #c9a96e;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Badge for submitted status */
.badge-submitted {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

/* Portal styles */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
}

.portal-header .logo {
    margin-bottom: 0;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #999;
    font-size: 0.85rem;
}

.portal-nav span {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #ccc;
}

.intake-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid #1e1e1e;
}

.intake-prompt:last-child {
    border-bottom: none;
}

.intake-prompt p {
    font-size: 0.9rem;
}

.course-list {
    display: grid;
    gap: 0.75rem;
}

.course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #222;
    transition: border-color 0.2s;
}

.course-item:hover {
    border-color: #333;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Admin response display */
.response-field {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1a1a1a;
}

.response-field:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.response-field .label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.response-value {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #e0e0e0;
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #222;
    color: #888;
    font-weight: 600;
    font-size: 1.2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Course layout */
.course-layout {
    display: flex;
    min-height: 100vh;
}

.course-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #111;
    border-right: 1px solid #222;
    padding: 1.5rem;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

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

.sidebar-header .logo {
    margin-bottom: 0;
}

.course-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.preview-badge {
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #c9a96e;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.course-progress-bar {
    margin-bottom: 1.5rem;
}

.course-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-section {
    margin-bottom: 1rem;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.nav-item:hover {
    background: #1a1a1a;
}

.nav-item.active {
    background: rgba(201, 169, 110, 0.06);
    color: #fff;
    border-left: 2px solid #c9a96e;
}

.nav-item-check {
    flex-shrink: 0;
    width: 1.2em;
    text-align: center;
    color: #444;
    font-size: 0.9em;
}

.nav-item.active .nav-item-check {
    color: #c9a96e;
}

/* Completed check mark */
.nav-item .nav-item-check {
    transition: color 0.15s;
}

.nav-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item-type {
    flex-shrink: 0;
    font-size: 0.65rem;
}

.course-content {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
}

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

.content-body {
    padding: 1rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container.video-native {
    padding-bottom: 0;
    height: auto;
}

.video-container.video-native video {
    position: static;
    max-height: 70vh;
}

.pdf-container {
    margin-bottom: 1rem;
}

.pdf-viewer {
    width: 100%;
    height: 80vh;
    border: 1px solid #222;
    border-radius: 8px;
}

.text-content {
    white-space: pre-wrap;
    line-height: 1.9;
    color: #ddd;
    font-size: 1rem;
    max-width: 680px;
}

/* Course admin */
.course-section {
    border-left: 3px solid #c9a96e;
}

.section-actions {
    display: flex;
    gap: 0.25rem;
}

.course-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
}

.item-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.item-list {
    margin: 1rem 0;
}

.inline-edit {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.inline-edit .input {
    flex: 1;
}

.add-item-form {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.add-item-form h3 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.upload-status {
    margin: 1rem 0;
}

.upload-status-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.badge-video {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.badge-pdf {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.badge-text {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

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

/* Upload progress overlay */
.upload-progress {
    margin-top: 0.75rem;
    display: none;
}

.upload-progress.active {
    display: block;
}

.upload-progress-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
    text-align: center;
}

/* Save indicator */
.save-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888;
    opacity: 0;
    transition: opacity 0.2s;
}

.save-indicator.visible {
    opacity: 1;
}

.save-indicator.saved {
    color: #2ecc71;
}

.save-indicator.saving {
    color: #c9a96e;
}

.save-indicator.error {
    color: #e74c3c;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c9a96e;
    color: #000;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 49;
}

/* Responsive */
@media (max-width: 768px) {
    .course-layout {
        flex-direction: column;
    }

    .course-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        z-index: 50;
        transition: left 0.3s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,0.5);
    }

    .course-sidebar.open {
        left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .course-content {
        padding: 1.5rem 1rem;
    }

    .video-container.video-native video {
        max-height: 50vh;
    }

    .pdf-viewer {
        height: 60vh;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .admin-nav {
        flex-wrap: wrap;
    }

    .table {
        font-size: 0.8rem;
    }

    .table th:nth-child(3),
    .table td:nth-child(3) {
        display: none;
    }

    .detail {
        flex-direction: column;
        gap: 0.25rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .portal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .intake-prompt {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .intake-prompt .btn-primary {
        width: 100%;
    }

    .course-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .course-item .btn {
        width: 100%;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .content-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}
