/* KSV Hessen Kassel - Zeugwart Backend */
:root {
    --ksv-red: #c8102e;
    --ksv-red-dark: #a50d24;
    --ksv-red-light: #f5dee2;
    --ksv-white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    min-height: 100vh;
}

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

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    margin: 1rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    display: block;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.login-logo h1 {
    font-size: 1.5rem;
    color: var(--ksv-red);
    margin-top: 0.5rem;
}

.login-logo .subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--gray-900);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.sidebar-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ksv-red);
}

.sidebar-header .user-info {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.125rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.nav-section {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    font-weight: 600;
}

/* Collapsible nav sections */
.nav-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}

.nav-section-toggle:hover { color: var(--gray-300); }

.nav-toggle-arrow {
    margin-left: auto;
    font-size: 0.6rem;
    transition: transform 0.2s;
    color: var(--gray-500);
}

.nav-section-toggle.open .nav-toggle-arrow {
    transform: rotate(90deg);
}

.nav-toggle-count {
    font-size: 0.6rem;
    background: rgba(255,255,255,0.1);
    color: var(--gray-400);
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    margin-left: 0.35rem;
}

.nav-collapsible {
    display: none;
    overflow: hidden;
}

.nav-collapsible.open {
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
.nav-item.active { background: rgba(200,16,46,0.2); color: var(--ksv-red); border-right: 3px solid var(--ksv-red); }

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 1.5rem 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

/* Top Bar */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.page-header .actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Hamburger */
.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--ksv-red);
    color: white;
    border: none;
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.25rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.red { background: var(--ksv-red-light); color: var(--ksv-red); }
.stat-icon.blue { background: #dbeafe; color: var(--info); }
.stat-icon.green { background: #d1fae5; color: var(--success); }

.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.stat-label { font-size: 0.75rem; color: var(--gray-500); }

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--gray-900);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--ksv-red);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
}

select.form-control { appearance: auto; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--ksv-red); color: white; }
.btn-primary:hover { background: var(--ksv-red-dark); }

.btn-secondary { background: white; color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); }

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

.btn-danger { background: white; color: var(--danger); border-color: var(--gray-300); }
.btn-danger:hover { background: #fef2f2; border-color: var(--danger); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

.btn-icon {
    padding: 0.4rem;
    border-radius: 6px;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--gray-500);
    display: inline-flex;
    transition: all 0.15s;
}

.btn-icon:hover { background: var(--gray-100); color: var(--gray-700); }
.btn-icon.danger:hover { background: #fef2f2; color: var(--danger); }
.btn-icon.btn-icon-sm { padding: 0.1rem 0.25rem; font-size: 0.85rem; vertical-align: middle; margin-left: 0.25rem; color: var(--gray-400); }
.btn-icon.btn-icon-sm:hover { color: var(--danger); background: #fef2f2; }

/* Table */
/* Kleidungs-Tabs */
#clothingTabBar {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0;
}
.clothing-tab-btn {
    padding: 0.5rem 1.1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 4px 4px 0 0;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.clothing-tab-btn:hover { color: var(--gray-700); }
.clothing-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff5f5;
}
.clothing-tab-count {
    display: inline-block;
    font-size: 0.72rem;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    font-weight: 600;
}
.clothing-tab-btn.active .clothing-tab-count {
    background: #fde8e8;
    color: var(--primary);
}

.table-wrapper {
    overflow-x: auto;
    margin: -0.5rem;
    padding: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead th {
    background: var(--gray-50);
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

thead th:hover { color: var(--gray-900); }
thead th .sort-icon { margin-left: 4px; opacity: 0.4; }
thead th.sorted .sort-icon { opacity: 1; color: var(--ksv-red); }

tbody td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

tbody tr:hover { background: var(--gray-50); }

/* Inline edit */
.inline-edit {
    padding: 0.25rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: none;
    font-size: 0.875rem;
    width: 100%;
    min-width: 60px;
    color: var(--gray-800);
}

.inline-edit:hover { border-color: var(--gray-200); }
.inline-edit:focus {
    outline: none;
    border-color: var(--ksv-red);
    background: white;
    box-shadow: 0 0 0 2px rgba(200,16,46,0.1);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-active { background: #d1fae5; color: #065f46; }
.badge-injured { background: #fef3c7; color: #92400e; }
.badge-deregistered { background: var(--gray-200); color: var(--gray-600); }
.badge-admin { background: var(--ksv-red-light); color: var(--ksv-red); }
.badge-team { background: #dbeafe; color: #1e40af; }

/* Search & Filter Bar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.875rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--ksv-red);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
}

.search-box svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 { font-size: 1.1rem; font-weight: 600; }

.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Toast */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--gray-900);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Team grid on dashboard */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.team-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--ksv-red);
    transform: translateY(-2px);
}

.team-card h3 { font-size: 1rem; color: var(--gray-900); margin-bottom: 0.25rem; }
.team-card .team-category { font-size: 0.75rem; color: var(--gray-500); }
.team-card .team-count {
    margin-top: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ksv-red);
}

.team-card .team-count span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-500);
}

/* Dashboard welcome */
.dashboard-welcome {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--ksv-red);
}

.dashboard-welcome-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.dashboard-welcome-content img {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.dashboard-welcome-content h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.35rem;
}

.dashboard-welcome-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .dashboard-welcome-content { flex-direction: column; text-align: center; }
}

/* Dashboard separate sections */
.dashboard-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-200);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.dashboard-section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
}

.dashboard-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ksv-red-light);
    color: var(--ksv-red);
    flex-shrink: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}

.empty-state svg { width: 48px; height: 48px; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; align-items: center; justify-content: center; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1rem; padding-top: 4rem; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header .actions { width: 100%; }
    .toolbar { flex-direction: column; }
    .search-box { width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-card { padding: 1.5rem; }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.open { display: block; }

/* Help page */
.help-intro-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.help-intro-content img {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.help-intro-content h2 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.help-intro-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-card h3 {
    font-size: 1rem;
    color: var(--gray-900);
}

.help-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.help-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.help-card-icon.red { background: var(--ksv-red-light); color: var(--ksv-red); }
.help-card-icon.blue { background: #dbeafe; color: var(--info); }
.help-card-icon.green { background: #d1fae5; color: var(--success); }

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}

.faq-item summary {
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: background 0.15s;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item summary::before {
    content: '\25B6';
    font-size: 0.6rem;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-item summary:hover { background: var(--gray-100); }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0.75rem 1rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.help-contact {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .help-intro-content { flex-direction: column; text-align: center; }
    .help-grid { grid-template-columns: 1fr; }
}

/* Dress Guide */
.dress-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.dress-guide-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.dress-guide-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dress-guide-slot {
    border-bottom: 1px solid var(--gray-200);
}

.dress-guide-slot:last-of-type {
    border-bottom: none;
}

.dress-guide-slot-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding: 0.4rem 0.75rem 0.15rem;
    background: var(--gray-50);
}

.dress-guide-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: var(--gray-50);
    cursor: zoom-in;
}

.dress-guide-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dress-guide-card:hover .dress-guide-img-wrap img {
    transform: scale(1.05);
}

.dress-guide-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    cursor: default;
}

.dress-guide-placeholder svg {
    width: 28px;
    height: 28px;
    margin-bottom: 0.15rem;
    opacity: 0.5;
}

.dress-guide-placeholder span {
    font-size: 0.7rem;
}

.dress-guide-slot-actions {
    display: flex;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: var(--gray-50);
}

.dress-guide-slot-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}

.dress-guide-info {
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.dress-guide-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    text-align: center;
}

/* Dress Guide Upload Drop Zone */
.dress-guide-dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.dress-guide-dropzone:hover,
.dress-guide-dropzone.dragover {
    border-color: var(--ksv-red);
    background: var(--ksv-red-light);
}

.dress-guide-dropzone svg {
    margin: 0 auto 0.5rem;
}

.dress-guide-preview {
    margin-top: 1rem;
    text-align: center;
}

.dress-guide-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

/* Dress Guide Lightbox */
.dress-guide-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}

.dress-guide-lightbox.open {
    display: flex;
}

.dress-guide-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.dress-guide-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.dress-guide-lightbox-close:hover { opacity: 1; }

.dress-guide-lightbox-label {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .dress-guide-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Quicktips */
.quicktips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.quicktip {
    background: #fff;
    border: 1px solid var(--gray-150, #eee);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.quicktip-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.quicktip.quicktip-intro { background: var(--gray-50); border-color: var(--gray-200); }
.quicktip-icon.red   { background: var(--ksv-red-light); color: var(--ksv-red); }
.quicktip-icon.blue  { background: #dbeafe; color: var(--info); }
.quicktip-icon.green { background: #d1fae5; color: var(--success); }
.quicktip strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.15rem;
}
.quicktip span {
    font-size: 0.73rem;
    color: var(--gray-500);
    line-height: 1.4;
}
