/* ============================================
   PhotoSharePro - Modern Dark Luxury Theme
   Clean, responsive design with smooth animations
   ============================================ */

/* CSS Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --bg-header: #0d0d14;
    --accent: #6c63ff;
    --accent-hover: #5a52e0;
    --accent-glow: rgba(108, 99, 255, 0.25);
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --border: #222233;
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info-bg: rgba(108, 99, 255, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Header */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent);
    font-size: 0.8em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a,
.main-nav .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    background: none;
    border: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
}

.main-nav a:hover,
.main-nav .nav-link:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 64px - 100px);
    padding: 32px 0;
}

/* Footer */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 60px;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    border: none;
    display: block;
    padding: 0;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05em;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    transition: border-color var(--transition);
}

.card:hover {
    border-color: rgba(108, 99, 255, 0.3);
}

.card-header {
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-bottom: 14px;
}

.form-control {
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95em;
    font-family: var(--font-sans);
    transition: all var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: var(--font-sans);
    line-height: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #1aad50;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(108, 99, 255, 0.05);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1em;
}

.btn-block {
    width: 100%;
    max-width: 480px;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.8em;
}

/* Alert Messages */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9em;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: var(--info-bg);
    color: var(--accent);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

/* Login Page */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.login-header h2 {
    font-family: var(--font-display);
    font-size: 1.6em;
}

.login-header p {
    color: var(--text-secondary);
    margin-top: 6px;
}

.login-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.login-footer a {
    color: var(--text-muted);
    font-size: 0.9em;
}

.login-footer a:hover {
    color: var(--accent);
}

/* Client List Table */
.client-list {
    width: 100%;
    border-collapse: collapse;
}

.client-list th,
.client-list td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.client-list th {
    background: var(--bg-dark);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-list tr:hover td {
    background: var(--bg-card-hover);
}

.client-list code {
    background: var(--bg-dark);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent);
}

.gallery-url {
    color: var(--accent);
    word-break: break-all;
    font-size: 0.85em;
}

.btn-copy {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-copy:hover {
    background: rgba(108, 99, 255, 0.2);
}

/* Upload Page */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin: 15px 0;
    transition: all var(--transition);
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent);
    background: rgba(108, 99, 255, 0.03);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 12px;
    opacity: 0.6;
}

.upload-text {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.preview-item {
    width: 110px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    transition: border-color var(--transition);
}

.preview-item:hover {
    border-color: var(--accent);
}

.preview-item img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    display: block;
}

.preview-name {
    display: block;
    padding: 4px 6px;
    font-size: 0.7em;
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Gallery Page */
.gallery-header {
    text-align: center;
    padding: 40px 0 20px;
}

.gallery-header h1 {
    font-family: var(--font-display);
    font-size: 2.4em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gallery-header p {
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* Folder Tabs */
.folder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 20px 0 28px;
    padding: 0 20px;
}

.folder-tab {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.folder-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(108, 99, 255, 0.05);
}

.folder-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.folder-tab.active:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.gallery-item:hover {
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item-img {
    position: relative;
    overflow: hidden;
}

.gallery-item-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform var(--transition);
}

.gallery-item:hover .gallery-item-img img {
    transform: scale(1.03);
}

.gallery-item-actions {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-item-name {
    font-size: 0.8em;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent) !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1em;
    transition: all var(--transition);
}

.btn-download:hover {
    background: var(--accent);
    color: #fff !important;
}

.gallery-actions {
    text-align: center;
    margin: 20px 0;
}

.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1.1em;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.9em;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--text-secondary);
    font-size: 2em;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--text-primary);
}

/* ============================================
   Home / Landing Page
   ============================================ */

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0 80px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--info-bg);
    color: var(--accent);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.text-accent {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 360px;
}

.hero-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    font-weight: 500;
    transition: transform var(--transition);
}

.hero-card:hover {
    transform: translateY(-4px);
}

.hero-card-icon {
    font-size: 1.8em;
}

.hero-card-1 {
    top: 20px;
    left: 10%;
}

.hero-card-2 {
    top: 130px;
    right: 5%;
}

.hero-card-3 {
    bottom: 30px;
    left: 20%;
}

/* Sections */
.section-title {
    font-family: var(--font-display);
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05em;
    margin-bottom: 40px;
}

/* Features */
.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2em;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--accent);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.8;
}

.step-card h3 {
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.7;
}

/* CTA */
.cta-section {
    padding: 40px 0 20px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(108, 99, 255, 0.03));
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: 1.8em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05em;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 0;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        height: 260px;
    }

    .hero-card-1 { left: 5%; }
    .hero-card-2 { right: 5%; top: 100px; }
    .hero-card-3 { left: 15%; }

    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 12px 0;
        flex-direction: column;
        gap: 10px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a,
    .main-nav .nav-link {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-visual {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item-img img {
        height: 180px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-control {
        max-width: 100%;
    }

    .client-list {
        font-size: 0.85em;
    }

    .client-list th,
    .client-list td {
        padding: 10px 8px;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 32px 20px;
    }

    .folder-tabs {
        gap: 6px;
    }

    .folder-tab {
        padding: 8px 16px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.5em;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.5em;
    }
}

/* ============================================
   Uploaded Photos (Admin Upload Page)
   ============================================ */

.upload-stats {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95em;
}

.uploaded-folder {
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.uploaded-folder-header {
    background: var(--bg-dark);
    padding: 12px 18px;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.uploaded-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
}

.uploaded-thumb {
    width: 90px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.uploaded-thumb:hover {
    border-color: var(--accent);
}

.uploaded-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-muted {
    color: var(--text-muted);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--info-bg);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.78em;
    font-weight: 600;
}

/* Breadcrumb separator */
.breadcrumb-sep {
    color: var(--text-muted);
    font-size: 0.7em;
    margin: 0 2px;
    display: inline-flex;
    align-items: center;
}

/* Subfolder tabs */
.subfolder-tabs {
    margin-top: 8px;
}

.folder-tab-sub {
    background: rgba(108, 99, 255, 0.06);
}

/* Gallery photo count */
.gallery-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 8px;
}

/* Code inline */
code {
    background: var(--bg-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent);
}

/* ============================================
   Delete Button
   ============================================ */

.btn-delete {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 6px 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 500;
    transition: all var(--transition);
    font-family: var(--font-sans);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.action-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ============================================
   Photo Selection & Management
   ============================================ */

.manage-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.form-control-inline {
    display: inline-block;
    width: auto;
    min-width: 200px;
}

.uploaded-thumb {
    position: relative;
    width: 100px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

.uploaded-thumb.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.uploaded-thumb .photo-checkbox {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.uploaded-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
}

.uploaded-thumb .preview-name {
    display: block;
    padding: 2px 4px;
    font-size: 0.65em;
    color: var(--text-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--bg-card);
}

.btn-select-all {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    margin-left: auto;
    font-family: var(--font-sans);
    transition: all var(--transition);
}

.btn-select-all:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .manage-actions {
        width: 100%;
        margin-top: 10px;
    }

    .form-control-inline {
        width: 100%;
        min-width: unset;
    }

    .action-cell {
        flex-direction: column;
        gap: 4px;
    }
}
