:root {
    --admin-bg: #f8fafc;
    --admin-surface: #ffffff;
    --admin-border: #e2e8f0;
    --admin-text: #1e293b;
    --admin-text-muted: #64748b;
    --admin-primary: #d92027;
    --admin-primary-dark: #b81b21;
    --admin-success: #10b981;
    --admin-danger: #ef4444;
    --admin-warning: #f59e0b;
    --admin-sidebar-bg: #0f2b5b;
    --admin-sidebar-text: #e0eaff;
    --admin-sidebar-hover: #1a428a;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.admin-body { font-family: 'Inter', sans-serif; background-color: var(--admin-bg); background-image: url('../assets/watermark.jpg'); background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; color: var(--admin-text); display: flex; min-height: 100vh; }
body.login-body { font-family: 'Inter', sans-serif; background-color: #f8f9fa; background-image: url('../assets/watermark.jpg'); background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; color: #1e293b; display: flex; align-items: center; justify-content: center; height: 100vh; }

/* Login */
.login-container { width: 100%; max-width: 400px; padding: 2rem; }
.login-card { background: #ffffff; border-radius: var(--radius); padding: 2.5rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.logo-icon-lg { width: 60px; height: 60px; background: var(--admin-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; color: white; }
.login-logo h1 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; letter-spacing: 1px; }
.login-logo h1 span { color: var(--admin-primary); }
.login-logo p { color: #64748b; font-size: 0.95rem; margin-top: 0.5rem; font-weight: 500; }
.login-back { display: block; text-align: center; margin-top: 1.5rem; color: #64748b; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.login-back:hover { color: var(--admin-primary); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: var(--admin-primary); }

/* Layout */
.admin-sidebar { width: 250px; background: var(--admin-sidebar-bg); color: var(--admin-sidebar-text); display: flex; flex-direction: column; transition: transform 0.3s ease; position: fixed; height: 100vh; z-index: 100; }
.sidebar-header { padding: 1.5rem; font-size: 1.25rem; font-family: 'Outfit', sans-serif; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 0.75rem; color: white; }
.sidebar-header i { color: var(--admin-primary); }
.sidebar-nav { flex-grow: 1; overflow-y: auto; padding: 1rem 0; }
.sidebar-section-title { display: block; padding: 1rem 1.5rem 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #64748b; font-weight: 700; }
.sidebar-link { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 1rem; margin: 0.25rem 1rem; border-radius: 8px; color: var(--admin-sidebar-text); transition: all 0.2s; font-weight: 500; font-size: 0.95rem; }
.sidebar-link:hover { background: var(--admin-sidebar-hover); color: white; transform: translateX(4px); }
.sidebar-link.active { background: var(--admin-primary); color: white; box-shadow: 0 4px 10px rgba(217, 32, 39, 0.25); }
.sidebar-link.logout { margin-top: auto; color: #fca5a5; margin-bottom: 1rem; background: rgba(255,255,255,0.05); }
.sidebar-link.logout:hover { background: #ef4444; color: white; }

.admin-main { flex-grow: 1; margin-left: 250px; display: flex; flex-direction: column; min-width: 0; }
.admin-header { background: var(--admin-surface); padding: 1rem 2rem; border-bottom: 1px solid var(--admin-border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 90; }
.admin-header h2 { font-size: 1.25rem; color: var(--admin-text); }
.sidebar-toggle { display: none; background: none; border: none; font-size: 1.25rem; color: var(--admin-text-muted); cursor: pointer; }
.admin-user { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--admin-text-muted); }

.admin-content { padding: 2rem; flex-grow: 1; overflow-y: auto; }

/* Utilities */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: var(--radius); font-weight: 500; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; font-family: 'Inter', sans-serif; font-size: 0.9rem; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--admin-primary); color: white; }
.btn-primary:hover { background: var(--admin-primary-dark); }
.btn-outline { border-color: var(--admin-border); color: var(--admin-text); background: white; }
.btn-outline:hover { background: #f1f5f9; }
.btn-full { width: 100%; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: var(--admin-text); }
.form-input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--admin-border); border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--admin-text); background: var(--admin-surface); transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.1); }
.form-input-file { width: 100%; padding: 0.5rem; border: 1px dashed var(--admin-border); border-radius: var(--radius); background: #f8fafc; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check label { display: flex; align-items: center; gap: 0.5rem; margin: 0; cursor: pointer; }

/* Alerts */
.admin-alerts { padding: 1rem 2rem 0; }
.admin-alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 500; font-size: 0.9rem; }
.admin-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.admin-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.admin-alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

/* Panels & Cards */
.admin-panel { background: var(--admin-surface); border-radius: var(--radius); border: 1px solid var(--admin-border); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 2rem; }
.panel-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--admin-border); display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.panel-header h3 { font-size: 1.1rem; color: var(--admin-text); display: flex; align-items: center; gap: 0.5rem; }
.panel-body { padding: 1.5rem; }

/* Tables */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--admin-border); font-size: 0.9rem; }
.admin-table th { font-weight: 600; color: var(--admin-text-muted); background: #f8fafc; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }
.table-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--admin-border); }

.actions-cell { display: flex; gap: 0.5rem; }
.btn-edit { background: #e0f2fe; color: #0284c7; border: none; border-radius: 4px; padding: 0.4rem 0.6rem; cursor: pointer; }
.btn-edit:hover { background: #bae6fd; }
.btn-delete { background: #fee2e2; color: #b91c1c; border: none; border-radius: 4px; padding: 0.4rem 0.6rem; cursor: pointer; }
.btn-delete:hover { background: #fecaca; }

/* Status Badges */
.status-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-active { background: #dcfce7; color: #166534; }
.status-inactive { background: #f1f5f9; color: #475569; }
.status-pendiente { background: #fef9c3; color: #854d0e; }
.status-en_proceso { background: #e0f2fe; color: #0369a1; }
.status-respondida { background: #dcfce7; color: #166534; }

/* Pagination */
.admin-pagination { padding: 1rem; border-top: 1px solid var(--admin-border); display: flex; justify-content: flex-end; gap: 0.25rem; }
.admin-pagination a, .admin-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; font-size: 0.85rem; font-weight: 500; }
.admin-pagination a { border: 1px solid var(--admin-border); color: var(--admin-text); text-decoration: none; }
.admin-pagination a:hover { background: #f1f5f9; }
.admin-pagination a.active { background: var(--admin-primary); color: white; border-color: var(--admin-primary); }

/* Dashboard Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: var(--admin-surface); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--admin-border); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1.5rem; }
.stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.bg-blue { background: #3b82f6; }
.bg-green { background: #10b981; }
.bg-orange { background: #f59e0b; }
.bg-red { background: #ef4444; }
.bg-purple { background: #8b5cf6; }
.bg-teal { background: #14b8a6; }
.stat-card-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.stat-card-info p { color: var(--admin-text-muted); font-size: 0.85rem; font-weight: 500; }

/* Modals */
.admin-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.2s; }
.admin-modal.show { opacity: 1; visibility: visible; }
.modal-card { background: var(--admin-surface); width: 100%; max-width: 500px; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; transform: translateY(20px); transition: transform 0.3s; max-height: 90vh; overflow-y: auto; }
.admin-modal.show .modal-card { transform: translateY(0); }
.modal-card h3 { margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--admin-border); }
.modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }

/* Forms Grid */
.admin-form { display: flex; flex-direction: column; gap: 2rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.form-section { background: var(--admin-surface); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--admin-border); }
.form-section h3 { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--admin-primary); display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--admin-border); padding-bottom: 0.5rem; }

/* Toolbar */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; background: var(--admin-surface); padding: 1rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--admin-border); }
.toolbar-search { display: flex; gap: 0.5rem; }
.filter-tabs { display: flex; gap: 1rem; }
.filter-tab { padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 500; color: var(--admin-text-muted); text-decoration: none; border: 1px solid transparent; }
.filter-tab.active { background: #f1f5f9; color: var(--admin-text); border-color: var(--admin-border); }
.filter-tab:hover { color: var(--admin-text); }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.quick-action-card { background: var(--admin-surface); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--admin-border); text-align: center; color: var(--admin-text); transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; font-weight: 500; }
.quick-action-card i { font-size: 2rem; color: var(--admin-primary); }
.quick-action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--admin-primary); color: var(--admin-primary); }

@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .admin-toolbar { flex-direction: column; gap: 1rem; align-items: stretch; }
    .toolbar-search { flex-direction: column; }
}

/* Admin Product Form Extras */
.image-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.image-thumb-item {
    width: 160px;
    height: 100px;
    position: relative;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    overflow: visible;
    background: white;
}

.image-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.thumb-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--admin-danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.thumb-delete:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.current-image {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: visible;
    border: 1px solid var(--admin-border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.spec-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-row .form-input {
    flex: 1;
}

.current-file {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--admin-text-muted);
}

.current-file i {
    color: var(--admin-danger);
    font-size: 1.1rem;
}

/* Compact Dashboard Stats */
.dashboard-stats-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-report-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.stat-report-card h4 {
    color: var(--admin-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-report-card h4 i { color: var(--admin-primary); }

.report-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.main-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.main-metric .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--admin-text);
    line-height: 1;
}

.main-metric .label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--admin-text-muted);
}

.metric-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.bg-success { background: #10b981; }
.bg-warning { background: #f59e0b; }
.bg-danger { background: #ef4444; }

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--admin-border);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-item .m-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-text);
}

.metric-item .m-lbl {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    font-weight: 500;
}

.text-orange { color: #f59e0b !important; }
.text-green { color: #10b981 !important; }
.text-blue { color: #3b82f6 !important; }

/* Modern Quotes List Layout */
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quotes-list-header {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: var(--admin-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.quote-card-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.quote-card-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

.col-id { width: 5%; font-weight: 700; color: var(--admin-text-muted); font-size: 1rem; }
.col-client { width: 25%; display: flex; align-items: center; gap: 1rem; }
.col-contact { width: 20%; display: flex; flex-direction: column; gap: 0.25rem; }
.col-products { width: 15%; }
.col-status { width: 15%; }
.col-date { width: 10%; }
.col-action { width: 10%; text-align: right; }

.client-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}

.client-info { display: flex; flex-direction: column; }
.client-info strong { font-size: 0.95rem; color: var(--admin-text); }
.client-info span { font-size: 0.8rem; color: var(--admin-text-muted); }

.contact-item { font-size: 0.8rem; color: var(--admin-text-muted); display: flex; align-items: center; gap: 0.5rem; }
.contact-item i { color: #cbd5e1; width: 14px; text-align: center; }

.prod-count { display: inline-flex; align-items: center; gap: 0.5rem; background: #f1f5f9; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: #475569; }
.prod-count i { color: #94a3b8; }

.date-info { display: flex; flex-direction: column; }
.date-info strong { font-size: 0.85rem; color: var(--admin-text); }
.date-info span { font-size: 0.75rem; color: var(--admin-text-muted); }

.btn-view-modern {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 8px; background: #fef2f2; color: var(--admin-primary);
    font-weight: 600; font-size: 0.85rem; transition: all 0.2s; border: none; cursor: pointer; text-decoration: none;
}
.btn-view-modern:hover { background: var(--admin-primary); color: white; }

.status-badge { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* ===== Gallery Admin ===== */
.gallery-summary { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.summary-chip { display: flex; align-items: center; gap: 0.9rem; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--radius); padding: 0.9rem 1.4rem; box-shadow: var(--shadow-sm); }
.summary-chip > i { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.summary-chip .chip-num { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--admin-text); }
.summary-chip .chip-lbl { font-size: 0.8rem; color: var(--admin-text-muted); font-weight: 500; margin-top: 0.2rem; }

.gal-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.gal-cat-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0.9rem; border: 1px solid var(--admin-border); border-radius: var(--radius); background: #fff; transition: all 0.2s; }
.gal-cat-item:hover { border-color: var(--admin-primary); box-shadow: var(--shadow-sm); }
.gal-cat-info { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.gal-cat-info strong { font-size: 0.95rem; color: var(--admin-text); }
.gal-cat-tags { display: flex; align-items: center; gap: 0.5rem; }
.gal-cat-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.slug-pill { font-family: monospace; font-size: 0.72rem; background: #f1f5f9; color: #475569; padding: 0.15rem 0.5rem; border-radius: 6px; }
.count-pill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; background: #fef2f2; color: var(--admin-primary); padding: 0.15rem 0.55rem; border-radius: 9999px; }

.upload-dropzone { position: relative; display: flex; align-items: center; justify-content: center; min-height: 170px; border: 2px dashed var(--admin-border); border-radius: var(--radius); background: #f8fafc; cursor: pointer; overflow: hidden; transition: all 0.2s; text-align: center; margin-bottom: 0; }
.upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--admin-primary); background: #fef2f2; }
.upload-dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-prompt { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--admin-text-muted); padding: 1rem; pointer-events: none; }
.dropzone-prompt i { font-size: 1.9rem; color: var(--admin-primary); }
.dropzone-prompt span { font-weight: 600; font-size: 0.9rem; color: var(--admin-text); }
.dropzone-prompt small { font-size: 0.75rem; }
.dropzone-preview { max-width: 100%; max-height: 250px; border-radius: var(--radius); display: block; pointer-events: none; }
.dropzone-preview[hidden] { display: none; }

.gal-filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gal-filter-tab { padding: 0.4rem 0.9rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 500; color: var(--admin-text-muted); background: #fff; border: 1px solid var(--admin-border); cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.gal-filter-tab:hover { color: var(--admin-text); }
.gal-filter-tab.active { background: var(--admin-primary); color: #fff; border-color: var(--admin-primary); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.gallery-card { position: relative; border: 1px solid var(--admin-border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f5f9; }
.gallery-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-card:hover .gallery-card-media img { transform: scale(1.05); }
.gallery-card-cat { position: absolute; top: 0.6rem; left: 0.6rem; background: rgba(15,43,91,0.85); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 9999px; backdrop-filter: blur(4px); }
.gallery-card-actions { position: absolute; top: 0.6rem; right: 0.6rem; display: flex; gap: 0.4rem; opacity: 0; transform: scale(0.85); transition: all 0.2s; }
.gallery-card:hover .gallery-card-actions { opacity: 1; transform: scale(1); }
.gallery-card-btn { width: 30px; height: 30px; border: none; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: background 0.2s; }
.gallery-card-btn.edit { background: rgba(15,43,91,0.9); }
.gallery-card-btn.edit:hover { background: #0f2b5b; }
.gallery-card-btn.del { background: rgba(239,68,68,0.92); }
.gallery-card-btn.del:hover { background: #b91c1c; }
.gallery-card-body { padding: 0.85rem 1rem; }
.gallery-card-body strong { display: block; font-size: 0.9rem; color: var(--admin-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-card-body small { display: block; font-size: 0.8rem; color: var(--admin-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.15rem; }

.gallery-empty { text-align: center; padding: 3rem 1rem; color: var(--admin-text-muted); font-style: italic; }
.gallery-empty i { font-size: 2.5rem; color: var(--admin-border); margin-bottom: 0.75rem; display: block; font-style: normal; }

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
    .gallery-card-actions { opacity: 1; transform: scale(1); }
}
