:root {
    --bg-dark: #09090b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-bg: rgba(24, 24, 27, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg-inner: rgba(255, 255, 255, 0.03);
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Mesh Gradient Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    opacity: 0.3;
    animation-duration: 25s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-panel-inner {
    background: var(--glass-bg-inner);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Main Container */
.container {
    width: 100%;
    max-width: 620px;
    border-radius: 24px;
    padding: 40px;
    z-index: 10;
    margin: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo i {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

.glass-badge {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
}

/* Upload Area */
.upload-area {
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover, .upload-area.highlight {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

.upload-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon-wrapper {
    background: var(--accent-gradient);
    transform: scale(1.05);
}

.upload-icon-wrapper i {
    font-size: 32px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon-wrapper i {
    color: white;
}

.upload-area h3 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.divider span {
    padding: 0 15px;
}

/* Buttons */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255,255,255,0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
}

.btn-icon {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* Status & Loading */
.status-container {
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.upload-animation {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.upload-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.uploading-icon {
    font-size: 24px;
    color: var(--accent-primary);
    animation: bounce 1s ease-in-out infinite alternate;
}

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

@keyframes bounce {
    from { transform: translateY(2px); }
    to { transform: translateY(-2px); }
}

.progress-bar-container {
    width: 80%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

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

/* Result Container */
.result-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.5s ease;
}

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

.preview-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.5);
}

#preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.preview-wrapper:hover #preview-img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.link-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-section label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.link-wrapper {
    display: flex;
    gap: 10px;
    position: relative;
}

#result-url {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
    padding: 0 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

#result-url:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Tooltip */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background-color: var(--text-primary);
    color: var(--bg-dark);
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.1rem;
}

.toast.error i { color: var(--error); }
.toast.success i { color: var(--success); }

/* Utility */
.hidden {
    display: none !important;
}

/* Custom Checkbox */
.options-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    user-select: none;
}

.custom-checkbox:hover {
    color: var(--text-primary);
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 12px;
}

/* Feedback Widget */
.feedback-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.feedback-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-trigger:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

.feedback-trigger:active {
    transform: scale(0.95);
}

.feedback-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

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

.btn-close-feedback:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin: 5px 0 10px 0;
}

.rating-stars label {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked + label,
.rating-stars input:checked + label ~ label {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.feedback-input-wrapper textarea {
    width: 100%;
    height: 90px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
}

.feedback-input-wrapper textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-submit-feedback {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
}

.feedback-success {
    text-align: center;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feedback-success .success-icon-wrapper {
    font-size: 40px;
    color: var(--success);
    margin-bottom: 5px;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.feedback-success h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.feedback-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
        margin: 10px;
        border-radius: 16px;
    }
    .upload-area {
        padding: 25px 15px;
    }
    .feedback-widget {
        bottom: 20px;
        right: 20px;
    }
    .feedback-panel {
        width: calc(100vw - 40px);
        right: 0;
        left: auto;
    }
}

/* Feedbacks Dashboard Page Specific Styles */
.feedbacks-container {
    max-width: 640px;
}

.dashboard-container {
    max-width: 760px;
}

.stats-card {
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 25px;
}

.stats-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-overview h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.stars-display {
    display: flex;
    gap: 4px;
    font-size: 1.15rem;
}

.text-gold {
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.stats-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breakdown-row span:first-child {
    width: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-pct {
    width: 38px;
    text-align: right;
    font-weight: 500;
    font-size: 0.85rem;
}

.feedbacks-section {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.feedbacks-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feedbacks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 6px;
}

.feedbacks-list::-webkit-scrollbar {
    width: 6px;
}

.feedbacks-list::-webkit-scrollbar-track {
    background: transparent;
}

.feedbacks-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.feedbacks-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.feedback-item-card {
    padding: 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--glass-bg-inner);
    animation: fadeIn 0.4s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-stars {
    display: flex;
    gap: 4px;
    font-size: 0.9rem;
}

.card-time {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.card-body p {
    font-size: 0.95rem;
    color: #e4e4e7;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

.loading-state, .empty-state, .error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-state i {
    font-size: 24px;
    color: var(--accent-primary);
}

.error-state i {
    font-size: 32px;
    color: var(--error);
}

@media (max-width: 550px) {
    .stats-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stats-overview {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 20px;
    }
    .nav-item {
        padding: 8px 10px;
        font-size: 0.85rem;
        gap: 6px;
    }
}

@media (max-width: 440px) {
    .nav-menu {
        flex-wrap: wrap;
        border-radius: 16px;
        gap: 6px;
        padding: 8px;
    }
    .nav-item {
        flex: 1 1 calc(50% - 6px);
        border-radius: 8px;
        padding: 8px 6px;
        font-size: 0.82rem;
    }
}

/* Navigation Menu Styles */
.nav-menu {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    justify-content: center;
}

.nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.nav-item.active {
    color: white;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.4);
}

/* System Upload Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--glass-bg-inner);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 20px -5px rgba(99, 102, 241, 0.1);
}

.stat-icon {
    font-size: 16px;
    color: var(--accent-primary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.stat-label {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 680px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Gallery Contribution Form UI */
.gallery-form-wrapper {
    margin-top: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.gallery-form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.gallery-form-field select,
.gallery-form-field textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.gallery-form-field select:focus,
.gallery-form-field textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.gallery-form-field textarea {
    resize: none;
    height: 70px;
}

.disabled-label {
    opacity: 0.4;
    cursor: not-allowed !important;
}

.disabled-label input,
.disabled-label span {
    cursor: not-allowed !important;
}

/* Category Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    justify-content: center;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.filter-tab.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.4);
}

/* Gallery Grid & Cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
}

.gallery-card {
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg-inner);
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
}

.gallery-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Category Badges */
.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-nature { background: rgba(34, 197, 94, 0.85); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-tech { background: rgba(59, 130, 246, 0.85); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-city { background: rgba(168, 85, 247, 0.85); border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-abstract { background: rgba(236, 72, 153, 0.85); border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-food { background: rgba(249, 115, 22, 0.85); border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-other { background: rgba(107, 114, 128, 0.85); border: 1px solid rgba(107, 114, 128, 0.3); }

.gallery-card-info {
    padding: 12px 4px 4px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.gallery-card-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
    text-align: left;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.gallery-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.gallery-card-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-copy-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-copy-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.btn-copy-link.copied {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* Lightbox Popup Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#lightbox-caption {
    margin-top: 15px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    text-align: center;
}

/* Google style close button for lightbox */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close:active {
    transform: rotate(90deg) scale(0.95);
}
