/* ==========================================================================
   FOTOPRO ADMIN MASTER STYLESHEET (css/admin.css)
   ========================================================================== */

body.admin-body {
    background-color: var(--bg-color, #e5e7eb);
    padding: 0;
    margin: 0;
}

/* Custom SVG Icon Alignment for Provider Buttons */
.btn-svg-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Sticky Admin Header Navigation */
.admin-header {
    background: #111827;
    color: #ffffff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    position: sticky;
    top: 0;
    z-index: 200;
}

.admin-header-title-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-logo {
    height: 3.6rem;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.admin-header h1 {
    font-size: 2.0rem;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.admin-header .btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-header .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-header .material-icons {
    color: #ffffff;
}

.admin-header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    position: relative;
}

.admin-header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn,
#btn-toggle-import-drawer,
#btn-open-export-modal,
#btn-open-album-modal,
#link-view-public-gallery {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: var(--control-height, 36px);
    font-size: var(--control-font-size, 0.85rem);
}

.header-action-btn:hover,
#btn-toggle-import-drawer:hover,
#btn-open-export-modal:hover,
#btn-open-album-modal:hover,
#link-view-public-gallery:hover,
.admin-header-right-actions .btn:hover,
.admin-header-right-actions .btn:focus,
.admin-header-right-actions a.btn:hover,
.admin-header-right-actions a.btn:focus {
    background: var(--accent-color, #deba0b);
    border-color: var(--accent-color, #deba0b);
    color: #111827;
}

.header-action-btn .material-icons,
#btn-toggle-import-drawer .material-icons,
#btn-open-export-modal .material-icons,
#btn-open-album-modal .material-icons,
#link-view-public-gallery .material-icons,
.admin-header-right-actions .btn:hover .material-icons,
.admin-header-right-actions a.btn:hover .material-icons {
    color: #ffffff;
}

.header-action-btn:hover .material-icons,
#btn-toggle-import-drawer:hover .material-icons,
#btn-open-export-modal:hover .material-icons,
#btn-open-album-modal:hover .material-icons,
#link-view-public-gallery:hover .material-icons,
.admin-header-right-actions .btn:hover .material-icons,
.admin-header-right-actions a.btn:hover .material-icons {
    color: #111827;
}

.user-profile-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #dddddd;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.user-avatar-btn:hover {
    border-color: #ffffff;
    transform: scale(1.05);
}

.user-avatar-btn img,
#user-avatar-img {
    width: 100%;
    height: 100%;
    max-width: 48px;
    max-height: 48px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 3000;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    overflow: hidden;
}

.user-dropdown-menu.open {
    display: block;
}

.user-dropdown-menu a {
    color: var(--text-main, #111827);
    padding: 10px 14px;
    font-size: var(--control-font-size, 0.85rem);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--control-bg, #f0f1f3);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.user-dropdown-menu a:hover {
    background: var(--control-hover, #e5e7eb);
}

.user-dropdown-menu a .material-icons {
    font-size: 18px;
    color: #444444;
}

.admin-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.import-card-drawer {
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #9ca3af;
}

.admin-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main, #111827);
}

.admin-card h2.album-preview-title {
    font-size: 1.43rem;
}

.admin-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
/**SM*/    
    margin-bottom: 0px;    
    flex-wrap: wrap;
    gap: 10px;
}

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

.section-title-with-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.photo-count-inline {
    font-size: var(--control-font-size, 0.85rem);
    font-weight: 400;
    color: var(--text-muted, #6b7280);
}

.header-action-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-meta-display {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    margin-top: 4px;
}

.help-text {
    font-size: var(--control-font-size, 0.85rem);
    color: var(--text-muted, #6b7280);
    margin-bottom: 15px;
}

.import-controls.single-line-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.import-controls input[type="text"] {
    flex: 1;
    min-width: 280px;
    height: var(--control-height, 36px);
    padding: var(--control-padding, 8px 12px);
    font-size: var(--control-font-size, 0.85rem);
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    background: var(--control-bg, #f0f1f3);
}

.api-keys-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--control-bg, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--border-radius-sm, 4px);
}

.api-key-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    font-size: var(--control-font-size, 0.85rem);
    font-weight: 600;
    color: var(--text-main, #111827);
    cursor: pointer;
    justify-content: flex-start;
}

.radio-label-normal {
    font-weight: 400;
    min-width: unset;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    accent-color: var(--text-main, #111827);
    width: 16px;
    height: 16px;
    margin: 0;
}

.share-options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    padding: 12px;
    background: var(--control-bg, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--border-radius-sm, 4px);
}

.share-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--control-font-size, 0.85rem);
    font-weight: 400;
    color: var(--text-main, #111827);
    cursor: pointer;
    margin: 0;
}

.share-option-item input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--text-main, #111827);
    flex-shrink: 0;
}

.api-key-input {
    flex: 1;
    min-width: 280px;
    height: var(--control-height, 36px);
    padding: var(--control-padding, 8px 12px);
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    background: #ffffff;
    font-family: monospace;
    font-size: var(--control-font-size, 0.85rem);
}

.button-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.button-row-meta-inline {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.form-group-title-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.inline-meta-top {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted, #6b7280);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inline-meta-top a#link-google-folder-display {
    color: var(--text-main, #111827);
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.15s ease;
}

.inline-meta-top a#link-google-folder-display:hover {
    color: #3730a3;
}

.meta-separator {
    color: var(--border-color, #d1d5db);
}

.button-group-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--control-font-size, 0.85rem);
    font-weight: 600;
    color: var(--text-main, #111827);
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label-normal {
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--text-main, #111827);
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: middle;
}

.form-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-column-left {
    flex: 1.5;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-column-right {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced gap for a tighter layout */
}

.form-group label {
    font-size: var(--control-font-size, 0.85rem);
    font-weight: 600;
    color: var(--text-main, #111827);
}

/* OVERRIDE: Eliminate inherited modal margin and format explicitly */
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    margin: 0 !important; /* Forces removal of the legacy 15px margin */
    padding: var(--control-padding, 8px 12px);
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    background: var(--control-bg, #f0f1f3);
    font-family: inherit;
    font-size: var(--control-font-size, 0.85rem);
}

.form-group input[type="text"] {
    height: var(--control-height, 36px);
}

.form-group textarea {
    resize: vertical;
}

.logo-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.admin-logo-preview-thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    background: var(--control-bg, #f0f1f3);
    flex-shrink: 0;
}

.btn-sm-pick {
    height: var(--control-height, 36px);
    padding: var(--control-padding, 8px 12px);
    font-size: var(--control-font-size, 0.85rem);
    border-radius: var(--border-radius-sm, 4px);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.file-limit-hint {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin-top: 2px;
    display: block;
}

.social-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.social-input-wrapper .social-icon {
    position: absolute;
    left: 10px;
    font-size: 16px;
    color: var(--text-muted, #6b7280);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-input-wrapper input[type="text"] {
    padding-left: 34px;
    width: 100%;
}

.btn-primary {
    background: var(--text-main, #111827);
    color: #ffffff;
    border-color: var(--text-main, #111827);
    min-width: 150px;
    text-align: center;
    justify-content: center;
}

.btn-primary .material-icons {
    color: #ffffff;
}

.btn-primary:hover {
    background: #3730a3;
    border-color: #3730a3;
}

.status-banner {
    display: none;
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--control-font-size, 0.85rem);
    text-align: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-banner.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-banner.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.status-banner.info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }


.toolbar.admin-preview-toolbar {
 	position:sticky;
 	top:80px;

/*SM override .toolbar in template.css

    background: transparent !important;
    border: none !important;
    border-top: 1px solid var(--border-color, #d1d5db) !important;
    padding: 12px 0 0 0 !important;
    margin-top: 15px !important;
    box-shadow: none !important;
    width: 100% !important;
    */
}

.admin-preview-grid {
    margin: 0;
    padding: var(--gap-size, 10px) 0;
}

.admin-preview-footer {
    border-radius: 0 0 var(--border-radius-sm, 4px) var(--border-radius-sm, 4px);
    margin-top: 0;
}

/* ==========================================================================
   LIST MODAL STYLES (Albums & Clients)
   ========================================================================== */

.album-list-modal-content,
.client-list-modal-content {
    max-width: 650px;
    width: 95%;
}

.album-modal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: nowrap;
}

.album-modal-toolbar .search-box {
    display: flex;
    align-items: center;
    background: var(--control-bg, #f0f1f3);
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    padding: 0 8px;
    flex: 1;
    min-width: 200px;
    height: var(--control-height, 36px);
}

.album-modal-toolbar .search-box .material-icons {
    color: var(--text-muted, #6b7280);
    font-size: 18px;
    margin-right: 6px;
    flex-shrink: 0;
}

.album-modal-toolbar .search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-main, #111827);
}

.modal-toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.toggle-switch-label {
    font-size: var(--control-font-size, 0.85rem);
    color: var(--text-main, #111827);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

#btn-toggle-display-name {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 0.8rem;
}

.albums-list-container,
.clients-list-container {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    background: var(--control-bg, #f0f1f3);
    margin-bottom: 15px;
}

.album-list-item,
.client-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color, #d1d5db);
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 12px;
}

.album-list-item:last-child,
.client-list-item:last-child {
    border-bottom: none;
}

.album-list-item:hover,
.client-list-item:hover {
    background: #ffffff;
}

.album-list-item.selected,
.client-list-item.selected {
    background: var(--accent-color-light, #eedc85);
    border-left: 4px solid var(--accent-color, #deba0b);
}

.album-item-left,
.client-item-left {
    flex: 1;
    min-width: 0;
    pointer-events: none;
}

.album-item-title,
.client-item-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-item-meta,
.client-item-meta {
    font-size: 0.775rem;
    color: var(--text-muted, #6b7280);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-item-right,
.client-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.album-item-stats {
    text-align: right;
    font-size: 0.775rem;
    color: var(--text-muted, #6b7280);
}

.btn-delete-album,
.btn-edit-client {
    background: transparent;
    border: 1px solid var(--border-color, #d1d5db);
    color: #444444;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--border-radius-sm, 4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-delete-album .material-icons,
.btn-edit-client .material-icons {
    font-size: 18px;
    color: #444444;
    transition: color 0.15s ease;
}

.btn-delete-album:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-delete-album:hover .material-icons {
    color: #dc2626;
}

.btn-edit-client:hover {
    background-color: var(--control-hover, #e5e7eb);
    border-color: #9ca3af;
}

.btn-edit-client:hover .material-icons {
    color: var(--text-main, #111827);
}

.admin-grab-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 35px;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.2s ease;
    touch-action: none;
}

.admin-grab-bar:hover .material-icons {
color: var(--btn-bg-hover);
} 


.thumb-card:hover .admin-grab-bar { opacity: 1; }
.thumb-card.dragging { opacity: 0.4; border: 2px dashed #9ca3af; }
.thumb-card.drag-over { border: 2px solid #111827; transform: scale(1.02); }

.json-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 700px;
    padding: 20px;
    border-radius: var(--border-radius-sm, 4px);
    border: 1px solid var(--border-color, #d1d5db);
}

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

.json-modal-content textarea {
    width: 100%;
    height: 320px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    padding: 12px;
    background: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    box-sizing: border-box;
    margin-bottom: 15px;
    line-height: 1.5;
    white-space: pre;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#about-fotopro-modal .modal-content.about-modal-content {
    background-color: #333333;
    color: #dddddd;
    border-radius: 8px;
    border: 1px solid #444444;
    width: 90%;
    max-width: 580px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#about-fotopro-modal .about-logo-img {
    height: 104px;
    margin-top: 15px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

#about-fotopro-modal p,
#about-fotopro-modal b,
#about-fotopro-modal div {
    color: #dddddd;
}

#about-fotopro-modal #btn-close-about-modal {
    background: transparent;
    border: none;
    color: #ffffff;
}

#about-fotopro-modal .material-icons,
#about-fotopro-modal .bi {
    color: #ffffff;
}

#about-fotopro-modal .about-version-badge {
    background: #444444;
    border: 1px solid #555555;
    color: #aaaaaa;
}

#about-fotopro-modal a {
    color: #ffffff;
}

#about-fotopro-modal a:hover {
    color: #dddddd;
}

#about-fotopro-modal hr {
    border-top: 1px solid #444444;
}

/* Admin Lightbox Zoom Cursor Tracking Fix */
body.admin-body #lightbox #lb-stage,
body.admin-body .lb-image-stage {
    pointer-events: auto;
    position: relative;
    z-index: 1001;
}

body.admin-body #lightbox #lb-zoom-viewport,
body.admin-body #lightbox .lb-zoom-viewport {
    pointer-events: none;
    position: absolute;
    z-index: 1002;
    overflow: hidden;
}

body.admin-body #lightbox #lb-img-zoomed,
body.admin-body #lightbox .lb-img-zoomed {
    pointer-events: none;
    position: absolute;
}

body.admin-body #lightbox .lightbox-controls-layer {
    pointer-events: none;
    z-index: 2000;
}

/**SM*/
/*body.admin-body #lightbox .lightbox-controls-layer button {*/
#lightbox .lightbox-controls-layer button {
    pointer-events: auto;
    background: #555;
    color: #CCC;
    border:1px solid #666;
}

#lightbox .lightbox-controls-layer button:hover{
    background: var(--accent-color);
    color: #CCC;
    border:1px solid #666;
}

#lb-zoom-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.50);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 200;
    letter-spacing: 0.5px;
    z-index: 1005;
    pointer-events: none;
    border-top-right-radius: 4px;
    display: block !important;
}

.home-page-header {
    background-image: url('../images/homepage.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 37.0vh;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-inverted {
    filter: brightness(0) invert(1);
}

#about-fotopro-modal .about-modal-header-hero {
    width: 100%;
    height: 130px;
    background-image: url('../images/homepage.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#about-fotopro-modal .about-modal-header-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

#about-fotopro-modal .about-logo-inverted-overlay {
    height: 77px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    z-index: 2;
    position: relative;
}

#about-fotopro-modal .about-single-line-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    font-size: 0.8rem;
    color: #dddddd;
    padding-top: 4px;
}

#about-fotopro-modal .about-single-line-footer a,
#about-fotopro-modal .about-single-line-footer span,
#about-fotopro-modal .about-single-line-footer i {
    color: #dddddd !important;
    text-decoration: none;
}

#about-fotopro-modal .about-single-line-footer a.about-text-link {
    text-decoration: underline;
}

#about-fotopro-modal .about-single-line-footer a:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   DIRECT PHOTO UPLOAD DROPZONE STYLES (css/admin.css)
   ========================================================================== */

.upload-dropzone-box {
    border: 2px dashed var(--border-color, #d1d5db);
    border-radius: var(--border-radius-sm, 4px);
    background: var(--control-bg, #f0f1f3);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-dropzone-box:hover,
.upload-dropzone-box.drag-over {
    background-color: var(--control-hover, #e5e7eb);
    border-color: var(--text-main, #111827);
}

.upload-dropzone-icon {
    font-size: 36px !important;
    color: var(--text-muted, #6b7280);
}

.upload-dropzone-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main, #111827);
}

.upload-dropzone-text span {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.upload-progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--control-bg, #e5e7eb);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    background-color: var(--accent-color, #deba0b);
    transition: width 0.2s ease;
}

.upload-progress-status-text {
    font-size: 0.775rem;
    color: var(--text-muted, #6b7280);
    margin-top: 4px;
    text-align: right;
}

/* ==========================================================================
   NOTIFICATION BELL & DRAWER STYLES (css/admin.css)
   ========================================================================== */

.notif-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notif-bell-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease !important;
}

.notif-bell-btn .material-icons {
    font-size: 31px !important;
}

.notif-bell-btn:hover {
    background: transparent !important;
    border: none !important;
    transform: scale(1.05);
}

.notif-bell-btn:hover .material-icons {
    color: #ffffff !important;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111827; /* Matches header background to cut out seamlessly */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.notif-drawer {
    position: absolute;
    top: calc(100% + 14px);
    right: -10px;
    width: 340px;
    background: #ffffff;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 3000;
}

/* Upward pointing arrow for the drawer */
.notif-drawer::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 25px;
    width: 10px;
    height: 10px;
    background: #f8fafc;
    border-left: 1px solid var(--border-color, #d1d5db);
    border-top: 1px solid var(--border-color, #d1d5db);
    transform: rotate(45deg);
}

.notif-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color, #d1d5db);
    border-radius: 8px 8px 0 0;
}

.notif-drawer-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main, #111827);
}

.btn-text-action {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: #3b82f6;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.btn-text-action:hover {
    text-decoration: underline;
    color: #2563eb;
}

.notif-drawer-body {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

.notif-empty, .notif-loading {
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted, #6b7280);
}

.notif-card {
    padding: 8px 10px;
    border-bottom: 1px solid var(--control-bg, #f0f1f3);
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.notif-card:last-child {
    border-bottom: none;
}

.notif-card:hover {
    background: var(--control-hover, #e5e7eb);
}

.notif-card.unread {
    background: #fefce8;
}

/* Unread Dot Indicator */
.notif-card.unread::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color, #deba0b);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(222, 186, 11, 0.6);
}

.notif-card.unread .notif-card-header {
    padding-left: 12px;
}

.notif-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    transition: padding 0.2s ease;
}

.notif-album-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-main, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.notif-client-name {
    color: var(--text-main, #111827);
    font-weight: 600;
}

.notif-client-in {
    font-weight: 400;
    color: var(--text-muted, #6b7280);
    margin: 0 2px;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}

.notif-metrics-bar {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

/* Pill-shaped metric tags */
.notif-metric {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 400;
    color: #4b5563;
    background: #f3f4f6;
    padding: 4px 4px;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
}

.notif-card.unread .notif-metric {
    background: #ffffff;
    border: 1px solid #fde047;
}

.notif-metric .material-icons {
    font-size: 14px;
    color: #6b7280;
}

.notif-card.unread .notif-metric .material-icons {
    color: #ca8a04;
}

/* Force View Gallery button in the Album Preview section to render solid */
.inline-save-wrapper #link-view-public-gallery {
    background: var(--control-bg, #f0f1f3);
    color: var(--text-main, #111827);
    border: 1px solid var(--border-color, #d1d5db);
}

.inline-save-wrapper #link-view-public-gallery .material-icons {
    color: var(--text-main, #111827);
}

.inline-save-wrapper #link-view-public-gallery:hover {
    background: var(--btn-bg-hover, #deba0b);
    border-color: var(--btn-border-hover, #deba0b);
    color: var(--btn-text-hover, #111827);
}

.inline-save-wrapper #link-view-public-gallery:hover .material-icons {
    color: var(--btn-text-hover, #111827);
}

/* ==========================================================================
   MOBILE HAMBURGER HEADER OVERRIDES & ALBUM PREVIEW ADJUSTMENTS
   ========================================================================== */

/* Mobile Edit Toggle Button Desktop State */
.mobile-edit-toggle-btn {
    display: none;
}

@media (max-width: 768px) {

/*SM */
.admin-grab-bar {
    display:none;
}

    /* Remove outer margin and borders for Admin sections to make them edge-to-edge on mobile */
    .admin-container {
        padding: 0 !important;
        gap: 0 !important;
    }

    .admin-card {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding:10px !important;
    }

    /* Mobile Edit Toggle Button */
    .mobile-edit-toggle-btn {
        display: flex !important;
        width: 100% !important;
        margin-top: 15px !important;
        justify-content: center !important;
    }

    /* Hide the edit rows by default on mobile unless toggled open */
    #section-album-preview:not(.mobile-edit-open) .button-group-right,
    #section-album-preview:not(.mobile-edit-open) .album-meta-inline-grid {
        display: none !important;
    }

    /* Base Flex structure for desktop buttons, hidden hamburger */
    .admin-header-actions-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-hamburger-btn {
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-hamburger-btn .material-icons {
        font-size: 24px !important;
        color: #ffffff !important;
    }

    /* Transform the action wrapper into a hidden absolute dropdown on mobile */
    .admin-header-actions-wrapper {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        background: #111827;
        border: 1px solid #374151;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        padding: 10px;
        min-width: 220px;
        z-index: 3000;
        flex-direction: column;
        gap: 8px;
    }

    .admin-header-actions-wrapper.open {
        display: flex !important;
    }

    /* Transform buttons into full-width labeled menu items */
    .admin-header-actions-wrapper .btn-labeled {
        display: flex !important;
        width: 100% !important;
        height: 44px !important;
        justify-content: flex-start !important;
        padding: 0 14px !important;
        font-size: 0.9rem !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border-radius: 6px !important;
    }

    .admin-header-actions-wrapper .btn-labeled .material-icons {
        font-size: 20px !important;
        margin-right: 10px !important;
        color: #ffffff !important;
    }

    .admin-header-right-actions {
        gap: 8px !important;
    }

    .user-avatar-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    .admin-header {
        padding-top: max(10px, env(safe-area-inset-top)) !important;
        padding-left: max(15px, env(safe-area-inset-left)) !important;
        padding-right: max(15px, env(safe-area-inset-right)) !important;
    }

    /* Reduce Dashboard title by 50% (from 2.0rem to 1.0rem) and prevent container spills */
    .admin-header h1 {
        font-size: 1.0rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .admin-header-title-container {
        gap: 8px !important;
        min-width: 0 !important;
    }
    
    .admin-header-logo {
        height: 2.4rem !important;
    }

    /* Hide "Edit data" and "Google folder" buttons on mobile */
    #btn-edit-json,
    #link-drive-folder {
        display: none !important;
    }

    /* Make "View gallery" and "Save changes" take full width side-by-side */
    .album-meta-inline-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .inline-save-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .inline-save-wrapper .btn {
        width: 100% !important;
        height: 44px !important;
        justify-content: center !important;
    }

    /* Make "Client" and "Photographer" buttons take full width side-by-side */
    .button-group-right {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    .button-group-right .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Thumb Card & List Item Touch Targets */
    .thumb-overlay-bar button, 
    .admin-move-btn-wrapper, 
    .admin-move-btn-wrapper .btn-move-icon {
/*SM
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
*/
    }

    .thumb-overlay-bar .material-icons,
    .thumb-overlay-bar .material-symbols-outlined {
        font-size: 22px !important;
    }

    .thumb-overlay-bar {
        padding: 8px !important;
        gap: 8px !important;
        min-height: 60px !important;
    }

    .btn-delete-album,
    .btn-edit-client {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 8px !important;
    }

    .btn-delete-album .material-icons,
    .btn-edit-client .material-icons {
        font-size: 22px !important;
    }

    .admin-card .btn,
    .admin-card input[type="text"],
    .admin-card select,
    .modal-content .btn,
    .modal-content input[type="text"],
    .modal-content select {
        min-height: 44px !important;
    }
    
    /* Album List Modal Line Wrapping & Meta Formatting */
    .album-item-meta {
        white-space: normal !important;
        line-height: 1.3 !important;
    }
    
    .album-item-meta .meta-divider {
        display: none !important;
    }
    
    .album-item-meta .meta-date {
        display: block !important;
        margin-top: 2px;
    }
    
    .album-item-right {
        flex-shrink: 0;
    }
}