/* ==========================================================================
   Union LUCA Photo Hub Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #0a0c10;
    --card-bg: rgba(22, 26, 38, 0.7);
    --card-border: rgba(255, 255, 255, 0.04);
    --text-primary: #f3f5f9;
    --text-secondary: #9ea4b4;
    --text-muted: #5e6475;
    
    /* UAW Gold/Amber Team Accents */
    --accent: #f9a825; 
    --accent-blue: #45aaf2;
    --accent-gradient: linear-gradient(135deg, #f9a825 0%, #f57c00 100%);
    --progress-bar-bg: rgba(255, 255, 255, 0.05);

    /* System */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-main: 0 10px 40px rgba(0, 0, 0, 0.4);
    --font-family: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
}

.orb-violet {
    top: -20%;
    right: 15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.orb-blue {
    bottom: -15%;
    left: 10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

/* App Layout Container */
.app-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* App Header styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(249, 168, 37, 0.4));
    animation: rotate 15s linear infinite;
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(249, 168, 37, 0.4));
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-logo-img {
    transform: rotate(360deg);
}

.brand-title h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    display: block;
    margin-top: -2px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.photo-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
}

.photo-counter i {
    width: 16px;
    height: 16px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(165, 94, 234, 0.3);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 94, 234, 0.5);
}

.btn-upload i {
    width: 18px;
    height: 18px;
}

/* Drag & Drop Zone */
.dropzone {
    border: 2px dashed rgba(165, 94, 234, 0.2);
    background: rgba(165, 94, 234, 0.02);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropzone.dragover {
    border-color: var(--accent);
    background: rgba(165, 94, 234, 0.06);
    transform: scale(1.01);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drop-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 4px;
    opacity: 0.8;
}

.dropzone h3 {
    font-size: 18px;
    font-weight: 600;
}

.dropzone p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Upload Progress Indicator */
.upload-progress-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

#progressStatusText {
    color: var(--accent-blue);
}

.progress-bar-bg {
    height: 8px;
    background: var(--progress-bar-bg);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 100px;
    transition: width 0.15s linear;
}

/* Masonry Photo Grid */
.gallery-wrapper {
    min-height: 400px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
}

/* Individual Photo Card */
.photo-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 11;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(165, 94, 234, 0.3);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

/* Image overlay on hover */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.photo-card:hover class,
.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.photo-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.photo-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.photo-download-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 12, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.photo-card:hover .photo-download-btn {
    opacity: 1;
    transform: translateY(0);
}

.photo-download-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 12px rgba(165, 94, 234, 0.6);
}

.photo-download-btn i {
    width: 16px;
    height: 16px;
}

/* Empty State */
.empty-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-gallery i {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-gallery h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-gallery p {
    font-size: 14px;
    max-width: 420px;
    line-height: 1.5;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 8, 12, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: #ff5252;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(165, 94, 234, 0.5);
}

.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

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

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-meta {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px 24px;
    border-radius: var(--radius-md);
}

.lightbox-title {
    font-size: 16px;
    font-weight: 600;
    display: block;
    color: #fff;
}

.lightbox-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-download-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-meta:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(69, 170, 242, 0.4);
}

.btn-download-meta i {
    width: 15px;
    height: 15px;
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.spin-icon {
    animation: spin 1s linear infinite;
}

/* Sidebar and Grid Layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-item i {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    opacity: 0.8;
}

.category-item-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.category-item-left span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.03);
}

.category-item.active {
    background: linear-gradient(135deg, rgba(165, 94, 234, 0.1) 0%, rgba(69, 170, 242, 0.1) 100%);
    border-color: rgba(165, 94, 234, 0.2);
    color: #fff;
    font-weight: 600;
}

.category-item.active i {
    color: var(--accent);
}

.category-delete-btn {
    opacity: 0;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.category-item:hover .category-delete-btn {
    opacity: 1;
}

.category-delete-btn:hover {
    color: #ff5252;
    transform: scale(1.1);
}

/* Inline Create Category Input */
.category-create-box {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    margin-bottom: 8px;
    animation: slideDown 0.2s ease-out;
}

.category-create-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 13px;
    outline: none;
    width: 100%;
}

.btn-confirm-cat {
    color: #2ecc71;
    cursor: pointer;
}

.btn-cancel-cat {
    color: #e74c3c;
    cursor: pointer;
}

/* User Profile & Logout Header controls */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
}

.user-profile-badge i {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 82, 82, 0.08);
    border-color: rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

/* Move to Category Popover */
.photo-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 14px;
    right: 14px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 5;
}

.photo-card:hover .photo-card-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Actions in overlays */
.photo-card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 12, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-card-action-btn:hover {
    color: #fff;
}

.photo-card-action-btn.download:hover {
    background: var(--accent-blue);
    box-shadow: 0 0 12px rgba(69, 170, 242, 0.6);
}

.photo-card-action-btn.move:hover,
.photo-card-action-btn.rename:hover {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(249, 168, 37, 0.6);
}

.photo-card-action-btn.delete:hover {
    background: #ff5252;
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.6);
}

.photo-card-action-btn i {
    width: 15px;
    height: 15px;
}

/* Category Selection Dropdown Menu */
.move-dropdown-container {
    position: relative;
}

.move-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(18, 22, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    width: 180px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.2s ease;
}

.move-dropdown-menu.show {
    display: flex;
}

.move-dropdown-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.move-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.move-dropdown-item.active {
    color: var(--accent-blue);
    font-weight: 600;
    background: rgba(69, 170, 242, 0.05);
}

/* Lightbox Modifications */
.lightbox-title-edit-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    padding: 4px 10px;
    outline: none;
    transition: all 0.2s ease;
    width: 200px;
}

.lightbox-title-edit-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(249, 168, 37, 0.3);
}

.lightbox-meta-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lightbox-category-picker {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 40px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-category-picker:hover {
    border-color: var(--accent);
}

.lightbox-category-picker option {
    background: #121621;
    color: #fff;
}

.btn-delete-meta {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.btn-delete-meta:hover {
    background: #ff5252;
    border-color: #ff5252;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
}

/* LOGIN PAGE SPECIFIC STYLES */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 10;
}

.login-card {
    background: rgba(18, 22, 33, 0.65);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(25px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-header .brand {
    margin-bottom: 8px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.login-error-banner {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: #ff5252;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-error-banner i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group label i {
    width: 13px;
    height: 13px;
    color: var(--accent-blue);
}

.input-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(165, 94, 234, 0.03);
    box-shadow: 0 0 15px rgba(165, 94, 234, 0.15);
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(165, 94, 234, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 94, 234, 0.4);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-login i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

.login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.login-footer code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s ease;
}

/* Card Selection Check Circle overlay */
.photo-card-selector {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(10, 12, 16, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 10;
    color: transparent;
}

.photo-card-selector i {
    width: 14px;
    height: 14px;
}

/* Show checkbox container overlay on hover, or keep visible if selected / selection active */
.photo-card:hover .photo-card-selector,
.photo-card.selected .photo-card-selector,
body.selection-mode .photo-card-selector {
    opacity: 1;
}

.photo-card-selector:hover {
    transform: scale(1.1);
    border-color: #fff;
    background: rgba(10, 12, 16, 0.9);
}

.photo-card.selected {
    border-color: var(--accent) !important;
    box-shadow: 0 10px 30px rgba(249, 168, 37, 0.3) !important;
    transform: scale(0.98);
}

.photo-card.selected .photo-card-selector {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #fff;
}

/* Floating Batch Action Bar */
.batch-action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(18, 22, 33, 0.75);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px);
    padding: 10px 24px 10px 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    width: max-content;
    max-width: 90vw;
    animation: slideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUp {
    to { transform: translateX(-50%) translateY(0); }
}

.batch-bar-content {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.batch-count {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-batch-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-batch-action:hover {
    background: var(--accent-gradient);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(249, 168, 37, 0.4);
}

.btn-batch-action.delete {
    background: rgba(255, 82, 82, 0.1);
    border-color: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.btn-batch-action.delete:hover {
    background: #ff5252;
    border-color: #ff5252;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.4);
}

.btn-batch-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-batch-action i {
    width: 15px;
    height: 15px;
}

.btn-icon.deselect {
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-icon.deselect:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ff5252;
}

/* Responsiveness */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-content { max-width: 95%; }
}

/* Gallery Toolbar & Search Bar */
.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.search-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 8px 16px;
    width: 100%;
    max-width: 400px;
    transition: all 0.25s ease;
}

.search-bar-container:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 12px rgba(249, 168, 37, 0.2);
}

.search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-bar-container input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    width: 100%;
}

.search-bar-container input::placeholder {
    color: var(--text-muted);
}

.btn-clear-search {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff5252;
}

.btn-clear-search i {
    width: 14px;
    height: 14px;
}
