 :root {
    --navy: #0B192C;
    --orange: #C85A32;
    --gold: #D4AF37;
    --charcoal: #212529;
    --gray: #6C757D;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
.workspace-body { background: #f4f6f9; color: var(--charcoal); }
.auth-wrapper { display: flex; justify-content: center; align-items: center; height: 100vh; background: var(--navy); padding: 20px; }
.auth-card { background: #fff; padding: 40px; border-radius: 12px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.auth-card h2 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 10px; }
.auth-card input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ddd; border-radius: 6px; }

.workspace-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
@media (max-width: 768px) { .workspace-layout { grid-template-columns: 1fr; } }
.sidebar { background: var(--navy); color: #fff; padding: 30px 20px; }
.ws-logo { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 35px; }
.ws-logo span { color: var(--gold); font-size: 14px; display: block; }
.ws-menu { list-style: none; }
.ws-menu li a { display: block; padding: 12px 15px; color: #adb5bd; text-decoration: none; border-radius: 6px; margin-bottom: 8px; font-weight: 500; transition: 0.3s; }
.ws-menu li a:hover, .ws-menu li a.active { background: var(--orange); color: #fff; }

.ws-content { padding: 35px; overflow-y: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.stat-box { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 4px solid var(--gold); }
.stat-box h3 { font-size: 14px; color: var(--gray); margin-bottom: 10px; }
.stat-box p { font-size: 28px; font-weight: 700; color: var(--navy); }

.form-step { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-top: 15px; }
.form-step h3 { margin-bottom: 20px; color: var(--navy); border-bottom: 1px solid #eee; padding-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.form-group { margin-top: 15px; }
.form-group label, .form-grid label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-grid input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }
.filter-toggles { display: flex; flex-wrap: wrap; gap: 15px; font-size: 14px; }

/* Drag & Drop Upload Zone */
.drop-zone { border: 2px dashed #adb5bd; border-radius: 10px; padding: 30px 20px; text-align: center; background: #f8f9fa; cursor: pointer; transition: all 0.25s ease; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--orange); background: #fff5f0; }
.drop-zone-icon { font-size: 32px; margin-bottom: 8px; }
.drop-zone p { font-size: 14px; color: var(--charcoal); margin-bottom: 4px; }
.drop-zone span { color: var(--orange); font-weight: 600; text-decoration: underline; }
.drop-zone small { color: var(--gray); font-size: 12px; }

/* Sortable Image Grid */
.sortable-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.preview-card { position: relative; height: 120px; border-radius: 8px; overflow: hidden; border: 2px solid #dee2e6; cursor: grab; background: #fff; user-select: none; transition: transform 0.15s, box-shadow 0.15s; }
.preview-card:active { cursor: grabbing; }
.preview-card.dragging { opacity: 0.45; transform: scale(0.95); }
.preview-card.is-cover { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,0.4); }
.preview-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cover-badge { position: absolute; top: 6px; left: 6px; background: var(--navy); color: var(--gold); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.5px; }
.order-badge { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.remove-img-btn { position: absolute; top: 6px; right: 6px; background: rgba(220,53,69,0.9); color: #fff; border: none; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; }

.btn-primary { background: var(--orange); color: #fff; border: none; padding: 12px 24px; font-size: 15px; font-weight: 600; border-radius: 6px; cursor: pointer; }
.btn-secondary { background: var(--navy); color: #fff; border: none; padding: 12px 24px; font-size: 15px; font-weight: 600; border-radius: 6px; cursor: pointer; }

.suggestions-box { position: absolute; background: #fff; border: 1px solid #ccc; width: 100%; max-height: 180px; overflow-y: auto; z-index: 50; border-radius: 0 0 6px 6px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: none; }
.suggestion-item { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #f1f1f1; font-size: 14px; }
.suggestion-item:hover { background: #f8f9fa; color: var(--orange); }

.ws-table { width: 100%; background: #fff; border-collapse: collapse; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-top: 20px; }
.ws-table th, .ws-table td { padding: 14px; text-align: left; border-bottom: 1px solid #eee; font-size: 13px; }
.ws-table th { background: var(--navy); color: #fff; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-pub { background: #d4edda; color: #155724; }
.badge-draft { background: #fff3cd; color: #856404; }
.btn-sm { background: var(--navy); color: #fff; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; }

.project-grid-master { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.pm-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.pm-card h4 { color: var(--navy); margin-bottom: 6px; font-family: 'Playfair Display', serif; }
.pm-card p { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.pm-drop-zone { border: 1px dashed var(--orange); border-radius: 6px; padding: 10px; text-align: center; font-size: 12px; font-weight: 600; color: var(--orange); cursor: pointer; margin-top: 10px; background: #fffaf8; transition: 0.2s; }
.pm-drop-zone.dragover { background: #ffe8de; }

.stock-edit-dialog {
    width: min(480px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid #dce1e8;
    border-radius: 12px;
}

.stock-edit-dialog::backdrop { background: rgb(15 30 48 / 55%); }
.stock-edit-dialog form { display: grid; gap: 10px; }
.stock-edit-dialog :is(input, select, textarea) {
    width: 100%;
    padding: 10px;
    border: 1px solid #bec8d1;
    border-radius: 6px;
    font: inherit;
}
.stock-edit-actions { display: flex; justify-content: flex-end; gap: 10px; }
