/* Bella Baby Hub — main stylesheet (extracted from index.html) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

.main-container {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

.dashboard-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Login Screen */
.auth-container {
    width: 100%;
    display: none !important;
    justify-content: center;
    align-items: center;
    background: #f7f7f8;
    min-height: 100vh;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 40px 50px;
    width: 520px;
    max-width: 95vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-card.hidden {
    display: none;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.auth-card h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 5px;
}

.auth-card p {
    color: #999;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #4ba8a8;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #4ba8a8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #3d8a8a;
}

.error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.error.show {
    display: block;
}

/* Dashboard Layout */
.dashboard {
    display: none;
    width: 100%;
    flex-direction: column;
}

.dashboard.active {
    display: flex;
}

.dashboard-header {
    background: white;
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
}

.top-bar-left a,
.swap-tab-btn {
    padding: 10px 16px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 3px solid transparent;
    color: #999;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.swap-tab-btn.active {
    color: #4ba8a8 !important;
    border-bottom: 3px solid #4ba8a8 !important;
}

/* Normalize all nav dropdown items — override browser link/button defaults */
#learningDropdown a,
#learningDropdown button,
#trainingTeamDropdown a,
#trainingTeamDropdown button,
#optionsDropdown a,
#optionsDropdown button {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
}

.top-bar-middle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-middle button {
    padding: 6px 14px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #e8f5f5;
    color: #4ba8a8;
    transition: background 0.2s;
}

.top-bar-middle button:hover {
    background: #d0e8e8;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right button {
    padding: 6px 16px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #e8f5f5;
    color: #4ba8a8;
    transition: background 0.2s;
    white-space: nowrap;
}

.top-bar-right button:hover {
    background: #d0e8e8;
}

.header-logo {
    display: inline-block;
    max-width: 150px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    margin: 20px 0 20px 0;
}

.auth-logo {
    max-width: 150px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    margin-bottom: 15px;
}

.dashboard-header h1 {
    color: #333;
    font-size: 22px;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: #999;
    font-size: 14px;
}

.dashboard-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 20px 25px 60px 25px;
    width: 100%;
    box-sizing: border-box;
}

.sidebar {
    display: none;
    /* sidebars removed — content moved inline */
}

.controls-section {
    margin-bottom: 20px;
}

.controls-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
}

.search-input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #4ba8a8;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.logout-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #e0e0e0;
}

.options-menu-item:hover {
    background: #f9f9f9;
}

.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 400px;
}

.filter-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 10px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    text-align: left;
}

.filter-btn.active {
    background: #4ba8a8;
    color: white;
    border-color: #4ba8a8;
}

.info-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.info-section h3 {
    color: #333;
    font-size: 14px;
    margin-bottom: 15px;
}

.info-section p {
    color: #666;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.scale-explanation {
    margin-top: 20px;
}

.scale-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.scale-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: 600;
    color: white;
    margin-right: 8px;
    font-size: 11px;
}

.scale-badge.score-1 {
    background: #ff9800;
}

.scale-badge.score-2 {
    background: #ffc107;
    color: #333;
}

.scale-badge.score-3 {
    background: #4caf50;
}

.scale-badge.score-4 {
    background: #2196f3;
    color: white;
}

.scale-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.scale-description {
    color: #666;
}

.rubric-link-btn {
    transition: all 0.2s ease !important;
}

.rubric-link-btn:hover {
    background: #3a8787 !important;
    box-shadow: 0 2px 8px rgba(75, 168, 168, 0.3);
    transform: translateY(-1px);
}

/* Photographer Cards */
.photographers-list {
    display: grid;
    gap: 15px;
}

.photographer-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.photographer-header {
    padding: 10px 16px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photographer-header:hover {
    background: #f0f0f0;
}

.photographer-left {
    flex: 1;
}

.photographer-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.photographer-meta {
    color: #999;
    font-size: 12px;
}

.photographer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e8f5f5;
    border-radius: 20px;
}

.score-badge-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.score-badge-value {
    font-size: 15px;
    font-weight: 700;
    color: #4ba8a8;
}

.expand-icon {
    color: #999;
    font-size: 14px;
    transition: transform 0.3s;
}

.photographer-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.nested-records {
    background: white;
    display: none;
}

.nested-records.show {
    display: block;
}

.nested-record {
    padding: 9px 16px;
    border-top: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nested-record:hover {
    background: #f9f9f9;
}

.nested-record-left {
    flex: 1;
}

.nested-record-date {
    color: #999;
    font-size: 11px;
    margin-bottom: 2px;
}

.nested-record-determination {
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.nested-record-score {
    background: #4ba8a8;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.no-records {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    border: none;
    background: none;
    padding: 0;
}

.modal-close:hover {
    color: #333;
}

.modal h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.modal-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
}

.detail-row {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-value {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.gallery-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.gallery-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 15px;
}

.gallery-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
    min-width: 0;
    width: 100%;
}

.gallery-score-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    gap: 8px;
}

.gallery-score-label {
    color: #666;
    margin-right: auto;
}

/* ── ALERT TOASTS ── */
#alertToastStack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 340px;
    width: 100%;
}

.alert-toast {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 14px 16px;
    border-left: 4px solid #4ba8a8;
    animation: toastSlideIn 0.3s ease;
    position: relative;
    font-size: 13px;
    line-height: 1.4;
}

.alert-toast.warning {
    border-left-color: #f59e0b;
}

.alert-toast.danger {
    border-left-color: #ef4444;
}

.alert-toast.info {
    border-left-color: #4ba8a8;
}

.alert-toast.success {
    border-left-color: #22c55e;
}

.alert-toast-icon {
    font-size: 15px;
    margin-right: 6px;
}

.alert-toast-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.alert-toast-body {
    color: #555;
    font-size: 12px;
    margin-bottom: 10px;
}

.alert-toast-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.alert-toast-btn {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.alert-toast-btn:hover {
    opacity: 0.8;
}

.alert-toast-btn.dismiss {
    background: #f0f0f0;
    color: #555;
}

.alert-toast-btn.snooze {
    background: #e8f5f5;
    color: #4ba8a8;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.alert-toast.removing {
    animation: toastSlideOut 0.25s ease forwards;
}

/* ── RESOURCES CAROUSEL ── */
.recommended-for-you {
    margin-top: 50px;
    padding: 0;
}

.rfy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rfy-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.rfy-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px 0;
}

.rfy-carousel-wrap {
    position: relative;
    width: 100%;
    padding: 0 44px;
    /* space for side arrows */
}

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

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #4ba8a8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.rfy-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 4px 2px 8px 2px;
    scrollbar-width: none;
}

.rfy-carousel::-webkit-scrollbar {
    display: none;
}

.rfy-resource-card {
    flex: 0 0 calc(33.333% - 9px);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.rfy-resource-card:hover {
    box-shadow: 0 6px 18px rgba(75, 168, 168, 0.15);
    border-color: #4ba8a8;
}

.rfy-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    background: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.rfy-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rfy-article-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.rfy-article-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f0f9f9 0%, #e8f4f4 100%);
}

.rfy-favicon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.rfy-domain {
    font-size: 11px;
    font-weight: 600;
    color: #4ba8a8;
    letter-spacing: 0.3px;
}

.rfy-complete-btn {
    padding: 6px 10px;
    font-size: 10px;
    background: white;
    color: #888;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rfy-complete-btn:hover {
    border-color: #4ba8a8;
    color: #4ba8a8;
}

.rfy-complete-btn.completed {
    background: #f0faf0;
    border-color: #a8d5a3;
    color: #2d7a2d;
    font-weight: 600;
}

.rfy-complete-btn.completed:hover {
    background: #fff3e0;
    border-color: #ffe0b2;
    color: #e65100;
}

.rfy-complete-btn.completing {
    opacity: 0.6;
    cursor: not-allowed;
}

.rfy-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.2s;
}

.rfy-resource-card:hover .rfy-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.rfy-play-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #c92a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rfy-card-body {
    padding: 10px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.rfy-card-category {
    font-size: 9px;
    font-weight: 700;
    color: #4ba8a8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 6px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}

.rfy-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex: 1;
}

.rfy-btn {
    padding: 6px 10px;
    font-size: 10px;
    background: #4ba8a8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rfy-btn:hover {
    background: #3a9090;
}

.rfy-button-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
}

.rfy-button-group .rfy-complete-btn {
    margin-left: auto;
}

.rfy-controls {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.rfy-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #666;
    transition: all 0.2s;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.rfy-arrow:hover {
    background: #f0f9f9;
    border-color: #4ba8a8;
    color: #4ba8a8;
}

.rfy-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rfy-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

@media (max-width: 768px) {
    .rfy-resource-card {
        flex: 0 0 75%;
    }
}

.sidebar-info-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    background: rgba(75, 168, 168, 0.15);
    color: #4ba8a8;
    border-radius: 50%;
    font-size: 10px;
    font-style: italic;
    font-weight: 700;
    cursor: help;
    margin-left: 6px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.sidebar-info-icon:hover {
    background: rgba(75, 168, 168, 0.3);
}

.sidebar-category-tooltip {
    background-color: #333;
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-style: normal;
    line-height: 1.4;
    white-space: normal;
    max-width: 220px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    position: fixed;
}

.sidebar-category-tooltip.visible {
    opacity: 1;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    margin-right: 6px;
    transition: background 0.2s, transform 0.2s;
    vertical-align: middle;
}

.info-icon:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.gallery-score-value {
    font-weight: 600;
    color: #333;
}

.record-tooltip {
    background-color: rgba(135, 180, 230, 1);
    color: white;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
    white-space: normal;
    width: 240px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(135, 180, 230, 0.3);
    line-height: 1.4;
    font-weight: 400;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-align: center;
}

.record-tooltip.visible {
    opacity: 1;
}

.record-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(135, 180, 230, 1) transparent transparent transparent;
}

.gallery-feedback {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #4ba8a8;
    font-size: 14px;
}

.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.password-modal.active {
    display: flex;
}

.password-modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.password-modal-close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 20px;
}

.password-modal-close:hover {
    color: #333;
}

.password-modal h2 {
    color: #333;
    margin-bottom: 20px;
    clear: both;
}

.password-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}

.password-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}

.print-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.print-btn {
    flex: 1;
    padding: 10px;
    background: #4ba8a8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}

.print-btn:hover {
    background: #3d8a8a;
}

@media print {
    body * {
        visibility: hidden;
    }

    .print-content,
    .print-content * {
        visibility: visible;
    }

    .print-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
    }
}

.admin-report {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
    overflow-y: auto;
}

.admin-report.active {
    display: flex;
}

.admin-report-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    margin: auto;
    position: relative;
    overflow-y: auto;
}

.admin-report-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    border: none;
    background: none;
    padding: 0;
}

.admin-report-close:hover {
    color: #333;
}

.admin-report h2 {
    color: #333;
    margin-bottom: 20px;
}

#pssavTable th, #pssavTable td { padding: 6px 8px; }
#assessmentPssavailContent { overflow-x: auto; }
.user-sync-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.user-sync-table th,
.user-sync-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
}

.user-sync-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.user-sync-table tr:hover {
    background: #f9f9f9;
}

.invite-btn-small {
    padding: 4px 9px;
    background: #4ba8a8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.invite-btn-small:hover {
    background: #3d8a8a;
}

.forgot-pw-btn-small {
    padding: 4px 9px;
    background: none;
    color: #2b5f86;
    border: 1px solid #2b5f86;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.forgot-pw-btn-small:hover {
    background: #eaf2f9;
}

.magic-link-btn-small {
    padding: 4px 9px;
    background: #17375e;
    color: #fff;
    border: 1px solid #17375e;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.magic-link-btn-small:hover {
    background: #0f2740;
}

/* Lightweight CSS-only tooltip — no JS wiring needed, safe for dynamically rendered rows */
.mu-tooltip {
    position: relative;
}

.mu-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(43, 95, 134, 0.97);
    color: white;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    width: 190px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 999;
    pointer-events: none;
}

.mu-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.batch-invite-btn {
    padding: 7px 16px;
    background: none;
    color: #2b5f86;
    border: 1px solid #cce0f5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-top: 16px;
    width: auto;
    display: inline-block;
}

.batch-invite-btn:hover {
    background: #eaf2f9;
}

.batch-invite-btn:disabled {
    background: none;
    color: #bbb;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.sync-status {
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 13px;
}

.sync-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.sync-status.error {
    background: #ffebee;
    color: #c62828;
}

.sync-status.loading {
    background: #e3f2fd;
    color: #1565c0;
}

.admin-tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.admin-tab-btn.active {
    color: #4ba8a8;
    border-bottom-color: #4ba8a8;
}

/* ── Admin Tools sidebar nav ─────────────────────────── */
.admin-nav-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.admin-nav-group {
    margin-bottom: 22px;
}

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

.admin-nav-group-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 12px 6px 12px;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 9px 12px;
    margin-bottom: 2px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.admin-nav-btn:hover {
    background: #f5f5f5;
}

.admin-nav-btn.active {
    background: #e8f4f4;
    border-left-color: #4ba8a8;
    color: #2b5f86;
    font-weight: 600;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.role-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: white;
}

.role-select:hover {
    border-color: #4ba8a8;
}

.save-role-btn {
    padding: 6px 12px;
    background: #4ba8a8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.system-placeholder {
    color: #1976d2;
    font-weight: 600;
    background: #e3f2fd;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.custom-placeholder {
    color: #e65100;
    font-weight: 600;
    background: #ffe0b2;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.placeholder-legend {
    display: flex;
    gap: 20px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 16px;
}

.placeholder-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.placeholder-legend-item-blue {
    color: #1976d2;
    font-weight: 600;
}

.placeholder-legend-item-orange {
    color: #e65100;
    font-weight: 600;
}

.manual-autocomplete-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.manual-autocomplete-option {
    padding: 7px 10px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
}

.manual-autocomplete-option:hover,
.manual-autocomplete-option.active {
    background: #f2f7fa;
}

.manual-autocomplete-empty {
    padding: 7px 10px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}


.save-role-btn:hover {
    background: #3d8a8a;
}

.save-role-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.role-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0.55;
    transition: opacity 0.15s, background 0.15s;
}

.role-edit-btn:hover {
    opacity: 1;
    background: #f0f0f0;
}

.role-cancel-btn {
    padding: 6px 12px;
    background: none;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}

.role-cancel-btn:hover {
    background: #f5f5f5;
}

/* Assessment form helpers */
.fl {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

.fi {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.fi:focus {
    outline: none;
    border-color: #4ba8a8;
}

.fcb {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    cursor: pointer;
}

.fcb input {
    margin-top: 2px;
    accent-color: #4ba8a8;
    flex-shrink: 0;
}

.form-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.2s;
}

.form-step-dot.active {
    background: #4ba8a8;
}

.form-step-dot.done {
    background: #a8d5a3;
}

.fi-locked {
    background: #f0f0f0 !important;
    color: #aaa !important;
    border-color: #ddd !important;
}

/* Simple Tooltip Styles - moved to body level via JS */
/* Photo Op URL "i" tooltip (hover, keyboard focus, or tap) */
.photoop-tip {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    margin-left: 6px;
    text-align: center;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    cursor: help;
    vertical-align: middle;
    outline: none;
}
.photoop-tip .photoop-tip-box {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: 250px;
    padding: 10px 12px;
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.photoop-tip:hover .photoop-tip-box,
.photoop-tip:focus .photoop-tip-box,
.photoop-tip:focus-within .photoop-tip-box {
    display: block;
}

.tooltip-wrapper .fl {
    border-bottom: 2px dotted #3b82f6;
    cursor: help;
}

.bb-tooltip {
    position: fixed;
    background-color: rgba(59, 130, 246, 0.95);
    color: white;
    text-align: center;
    padding: 12px 14px;
    border-radius: 8px;
    z-index: 99999;
    width: 280px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    white-space: normal;
    word-wrap: break-word;
    pointer-events: none;
    display: none;
}

.bb-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.95) transparent transparent transparent;
    top: 100%;
}

.bb-tooltip-link {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.bb-tooltip-link a {
    color: #e0f2fe;
    text-decoration: none;
    font-weight: 600;
}

.bb-tooltip-link a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── PHOTOGRAPHER HOME PAGE ────────────────────────── */
.level-pre-foundation {
    background: #f3e8ff;
    color: #6b21a8;
}

.level-foundation {
    background: #dbeafe;
    color: #1e40af;
}

.level-ambassador {
    background: #d1fae5;
    color: #065f46;
}

.level-advanced {
    background: #fef3c7;
    color: #92400e;
}

.next-level-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.next-level-row:last-child {
    border-bottom: none;
}

.next-level-label {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    min-width: 160px;
}

.next-level-bar-wrap {
    flex: 1;
    margin: 0 14px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.next-level-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.next-level-score {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: right;
}

.next-level-delta {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    white-space: nowrap;
}

/* Growth Opportunities Styles */
.go-photographer-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.go-photographer-header {
    padding: 10px 16px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.go-photographer-header:hover {
    background: #f0f0f0;
}

.go-photographer-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.go-photographer-count {
    font-size: 12px;
    color: #999;
    margin-left: 12px;
}

.go-toggle-icon {
    color: #999;
    font-size: 13px;
    transition: transform 0.2s;
}

.go-photographer-card.expanded .go-toggle-icon {
    transform: rotate(180deg);
}

.go-flagged-records {
    display: none;
    flex-direction: column;
}

.go-photographer-card.expanded .go-flagged-records {
    display: flex;
}

.go-flagged-record {
    padding: 10px 16px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.go-flagged-record:last-child {
    border-bottom: none;
}

.go-record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
}

.go-record-header:hover {
    background: #fafafa;
    padding: 0 -18px;
}

.go-record-info {
    flex: 1;
}

.go-record-date {
    font-size: 12px;
    color: #999;
}

.go-record-reviewer {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.go-open-btn {
    padding: 5px 11px;
    background: #4ba8a8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.go-open-btn:hover {
    background: #3a8f8f;
}

.go-flags-container {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #c92a2a;
}

.go-flag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.go-flag-item:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

.go-flag-text {
    color: #333;
    font-weight: 500;
    flex: 1;
}

.go-flag-category {
    display: none;
}

/* Toggle Switch Styling */
.go-flag-status-toggle {
    display: inline-flex;
    gap: 0;
    background: #e8e8e8;
    border-radius: 20px;
    padding: 2px;
}

.go-flag-status-btn {
    padding: 5px 12px;
    font-size: 11px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: #666;
    border-radius: 16px;
}

.go-flag-status-btn.active {
    background: white;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.go-flag-status-btn.active.go-btn-active {
    background: #f0d957;
    color: #333;
}

.go-flag-status-btn.active.go-btn-resolved {
    background: #a8d5a3;
    color: #333;
}

.go-flag-status-btn:hover {
    opacity: 0.8;
}

.go-record-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    gap: 8px;
}

.go-mark-all-btn {
    padding: 6px 13px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s;
}

.go-mark-all-btn:hover {
    background: #555;
}

.go-expand-records {
    display: none;
    padding: 10px 16px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    cursor: pointer;
}

.go-photographer-card.expanded .go-expand-records {
    display: none;
}

.go-expand-records:hover {
    background: #f0f0f0;
}

.go-expand-records-text {
    font-size: 13px;
    color: #4ba8a8;
    font-weight: 600;
}

/* Sidebar Record Viewer Styles */
#sidebarTabs {
    display: flex;
}

.sidebar-tab {
    padding: 12px 16px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    white-space: nowrap;
    transition: all 0.15s;
}

.sidebar-tab.active {
    color: #4ba8a8;
    border-bottom-color: #4ba8a8;
    background: white;
}

.sidebar-tab:hover {
    background: #f9f9f9;
}

.sidebar-tab .close-tab {
    margin-left: 8px;
    cursor: pointer;
}

.sidebar-tab .close-tab:hover {
    color: #c92a2a;
}

/* ── HUB SETTINGS TOGGLE ── */
.hub-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.hub-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hub-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.25s;
}

.hub-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hub-toggle input:checked+.hub-toggle-slider {
    background: #4ba8a8;
}

.hub-toggle input:checked+.hub-toggle-slider:before {
    transform: translateX(22px);
}

/* ── Read-only mode (super_ro) ─────────────────────────────── */
.ro-locked {
    opacity: .55;
    cursor: not-allowed !important;
}
.ro-locked:hover {
    background-color: #e0e0e0 !important;
    color: #888 !important;
}
#roTooltip {
    position: fixed;
    display: none;
    z-index: 99999;
    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 4px;
    pointer-events: none;
    max-width: 260px;
}
