:root {
    --primary-color: #409EFF;
    --primary-hover: #66b1ff;
    --danger-color: #F56C6C;
    --danger-hover: #f78989;
    --success-color: #67C23A;
    --success-hover: #85ce61;
    --warning-color: #E6A23C;
    --secondary-color: #909399;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #303133;
    --text-secondary: #606266;
    --border-color: #dcdfe6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 28px;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.pending-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    cursor: pointer;
}

.pending-badge.pulse {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tabs {
    background: var(--card-bg);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.tab-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.sub-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 24px;
    margin-top: 4px;
}

.sub-tab {
    padding: 6px 16px;
    font-size: 13px;
}

.expand-icon {
    font-size: 10px;
    margin-left: 4px;
}

.tab-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    width: 240px;
    transition: all 0.2s ease;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

.btn-search {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-search:hover {
    background: var(--primary-hover);
}

.main-content {
    flex: 1;
    padding: 24px;
    position: relative;
}

.waterfall {
    columns: 5;
    column-gap: 16px;
}

@media (max-width: 1400px) {
    .waterfall { columns: 4; }
}

@media (max-width: 1100px) {
    .waterfall { columns: 3; }
}

@media (max-width: 800px) {
    .waterfall { columns: 2; }
}

.image-card {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.4s ease;
}

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

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.image-card .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-card .image-overlay .download-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s;
    opacity: 0;
}

.image-card:hover .image-overlay .download-btn {
    opacity: 1;
}

.image-card .image-overlay .download-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.image-card .image-name {
    color: white;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.image-card .image-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    flex-wrap: wrap;
    gap: 4px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.pending {
    background: var(--warning-color);
    color: white;
}

.status-badge.approved {
    background: var(--success-color);
    color: white;
}

.status-badge.rejected {
    background: var(--danger-color);
    color: white;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge.admin {
    background: #ecf5ff;
    color: #409EFF;
}

.role-badge.reviewer {
    background: #f0f9ff;
    color: #0077d6;
}

.role-badge.producer {
    background: #e8f8e8;
    color: #67C23A;
}

.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
    color: var(--text-secondary);
}

.loading.active { display: flex; }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-secondary);
}

.empty.active { display: flex; }

.empty i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

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

.modal.active { display: flex; }

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.modal-content.modal-small { max-width: 400px; }
.modal-content.modal-large { max-width: 90%; max-height: 85vh; }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-header .close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-header .close:hover {
    background: var(--danger-color);
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.modal-content.modal-large .modal-body {
    max-height: calc(85vh - 80px);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.toast.toast-right {
    left: auto;
    right: 24px;
    bottom: 24px;
    transform: translateX(100px) translateY(0);
}

.toast.toast-right.active {
    transform: translateX(0) translateY(0);
}

.toast.success { background: var(--success-color); }
.toast.error { background: var(--danger-color); }
.toast.warning { background: var(--warning-color); }

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.lightbox.active { display: flex; }

.lightbox .lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.lightbox .lightbox-title {
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lightbox .lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.lightbox .lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.lightbox .lightbox-image-container {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox .lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox .lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightbox .lightbox-info {
    display: flex;
    gap: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.lightbox .lightbox-actions {
    display: flex;
    gap: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-info {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.btn-icon.danger:hover {
    background: var(--danger-color);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 240px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.nav-item.active {
    background: rgba(64, 158, 255, 0.1);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.page h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(64, 158, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.warning {
    background: rgba(230, 162, 60, 0.1);
    color: var(--warning-color);
}

.stat-icon.danger {
    background: rgba(245, 108, 108, 0.1);
    color: var(--danger-color);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.table-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table td {
    font-size: 14px;
}

.data-table tr:hover td {
    background: var(--bg-color);
}

.status-badge.active {
    background: #e8f8e8;
    color: #67C23A;
}

.status-badge.inactive {
    background: #fef0f0;
    color: #F56C6C;
}

.filter-bar {
    display: flex;
    gap: 12px;
}

.filter-bar select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.add-group {
    display: flex;
    gap: 8px;
}

.add-group input {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    min-width: 200px;
}

.add-group input:focus {
    border-color: var(--primary-color);
}

.group-list {
    list-style: none;
}

.group-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.group-name {
    font-size: 14px;
    font-weight: 500;
}

/* Review Page */
.review-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.review-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.review-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
}

.review-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.review-info {
    padding: 16px;
}

.review-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.review-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.review-actions .btn {
    flex: 1;
    justify-content: center;
}

.batch-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 16px 24px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.batch-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.batch-info label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.batch-buttons {
    display: flex;
    gap: 12px;
}

.history-container {
    max-width: 1400px;
    margin: 0 auto;
}

.history-filters {
    margin-bottom: 20px;
}

.history-filters select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Upload Page */
.upload-page {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area-large {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 80px 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.upload-area-large:hover,
.upload-area-large.dragover {
    border-color: var(--primary-color);
    background: rgba(64, 158, 255, 0.05);
}

.upload-area-large i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-area-large p {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.upload-options {
    margin-top: 24px;
}

.upload-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-group label {
    font-size: 14px;
    font-weight: 500;
}

.upload-group select {
    flex: 1;
    max-width: 300px;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.upload-group select:focus {
    border-color: var(--primary-color);
}

.upload-progress {
    margin-top: 24px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-list {
    margin-top: 24px;
}

.upload-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.upload-actions-info {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.upload-actions-info label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.upload-actions-info input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.upload-actions-buttons {
    display: flex;
    gap: 12px;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.upload-item.draft-item {
    position: relative;
}

.draft-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.upload-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.upload-item-info {
    flex: 1;
    min-width: 0;
}

.upload-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.upload-item-status {
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.upload-item-status.draft {
    color: var(--warning-color);
}

.upload-item-status.success {
    color: var(--success-color);
}

.upload-item-status.error {
    color: var(--danger-color);
}

.reject-reason {
    display: block;
    font-size: 11px;
    color: var(--danger-color);
    margin-top: 4px;
}

#passwordHint {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: normal;
}

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

.review-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    flex-direction: column;
}

.review-lightbox.active {
    display: flex;
}

.review-lightbox.transitioning .lightbox-image-container img {
    transition: opacity 0.2s ease;
}

.review-lightbox .lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
}

.review-lightbox .lightbox-title {
    color: white;
    font-size: 16px;
}

.review-lightbox .lightbox-counter {
    margin-left: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.review-lightbox .lightbox-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-lightbox .tool-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-lightbox .tool-btn:hover,
.review-lightbox .tool-btn.active {
    background: var(--primary-color);
}

.review-lightbox .color-picker input {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
}

.review-lightbox .brush-size input {
    width: 80px;
    cursor: pointer;
}

.review-lightbox .lightbox-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.review-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.review-lightbox .lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.review-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.review-lightbox .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.review-lightbox .lightbox-prev {
    left: 20px;
}

.review-lightbox .lightbox-next {
    right: 20px;
}

.review-lightbox .lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.review-lightbox .lightbox-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.review-lightbox #drawCanvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

.review-lightbox .lightbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
}

.review-lightbox .lightbox-info {
    display: flex;
    gap: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.review-lightbox .lightbox-actions {
    display: flex;
    gap: 12px;
}

.review-lightbox .lightbox-actions .btn {
    padding: 10px 24px;
}

.rejected-notification {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

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

.rejected-notification .rejected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.2);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.rejected-notification .rejected-header span {
    color: #92400e;
    font-weight: 600;
    font-size: 14px;
}

.rejected-notification .rejected-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #92400e;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
}

.rejected-notification .rejected-close:hover {
    background: rgba(245, 158, 11, 0.3);
}

.rejected-notification .rejected-list {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    max-height: 120px;
}

.rejected-notification .rejected-item {
    flex-shrink: 0;
    width: 80px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rejected-notification .rejected-item:hover {
    transform: scale(1.05);
}

.rejected-notification .rejected-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ef4444;
}

.rejected-notification .rejected-item-info {
    margin-top: 4px;
}

.rejected-notification .rejected-item-name {
    font-size: 10px;
    color: #92400e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rejected-notification .rejected-item-reason {
    font-size: 9px;
    color: #dc2626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rejected-notification .rejected-more {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
}

.rejected-notification .rejected-actions {
    padding: 12px;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    text-align: center;
}

.status-badge.draft {
    background: #fef3c7;
    color: #92400e;
}

.uploads-table-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.uploads-table {
    width: 100%;
    border-collapse: collapse;
}

.uploads-table th,
.uploads-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.uploads-table th {
    background: var(--bg-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.uploads-table td {
    font-size: 13px;
    vertical-align: middle;
}

.uploads-table tr:hover td {
    background: var(--bg-color);
}

.uploads-table .upload-thumb {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
}

.uploads-table .upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploads-table .upload-filename {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uploads-table .upload-filename .copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.uploads-table .upload-filename .copy-btn:hover {
    opacity: 1;
}

.uploads-table .upload-thumb {
    position: relative;
}

.uploads-table .reject-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.uploads-table .reject-reason-cell {
    max-width: 200px;
    color: var(--danger-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
