/* ==========================================================================
   REVA PHOENIX CALIBRATION CMS — MODERN FOCUSED ADMIN CONTROL CENTER
   Dedicated for: 35 Laboratories, Documents/Brochures/Certificates & All Site Images
   ========================================================================== */

:root {
  --bg-base: #0A0E17;
  --bg-surface: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1C283F;
  --bg-input: #0D1424;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 85, 0, 0.45);
  --border-glow: rgba(255, 85, 0, 0.25);

  --orange-primary: #FF5500;
  --orange-hover: #FF6A1A;
  --orange-glow: rgba(255, 85, 0, 0.2);
  --cyan-accent: #00F0FF;
  --cyan-glow: rgba(0, 240, 255, 0.15);
  --green-success: #10B981;
  --red-danger: #EF4444;

  --text-main: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  --font-heading: "Inter", -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-modal: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 85, 0, 0.3);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(ellipse at 15% 0%, rgba(255, 85, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 100%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
}

/* ==========================================================================
   1. AUTHENTICATION / LOGIN SCREEN
   ========================================================================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-modal);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--cyan-accent));
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.login-brand img {
  height: 72px;
  object-fit: contain;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

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

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.login-credentials-hint {
  margin-top: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.login-credentials-hint strong {
  color: var(--text-secondary);
}

/* ==========================================================================
   2. MAIN ADMIN SHELL & TOPBAR
   ========================================================================== */
.admin-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-logo {
  height: 56px;
  object-fit: contain;
}

.topbar-badge {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 1px solid var(--border-subtle);
}

.topbar-badge-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-badge-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--orange-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.topbar-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 23, 0.7);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab-btn.active {
  background: var(--orange-primary);
  color: #FFF;
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.35);
}

.tab-counter {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--green-success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 10px;
  border-radius: 20px;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-success);
  box-shadow: 0 0 8px var(--green-success);
}

/* ==========================================================================
   3. CONTENT VIEWS & LAYOUT
   ========================================================================== */
.admin-main {
  flex: 1;
  padding: 32px 36px 60px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.view-section.active {
  display: block;
}

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

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.view-heading-group h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-heading-group p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.view-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Search and Filters */
.search-box {
  position: relative;
  width: 320px;
}

.search-box input {
  padding-left: 38px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: rgba(255, 85, 0, 0.15);
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

/* ==========================================================================
   4. TAB 1: 35 LABORATORIES MANAGER
   ========================================================================== */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.lab-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lab-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card);
}

.lab-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lab-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.lab-code-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-primary);
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.lab-category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lab-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.lab-card-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.lab-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.78rem;
}

.lab-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lab-spec-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
}

.lab-spec-val {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.lab-catalog-badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.lab-catalog-badge:hover {
  color: var(--cyan-accent);
}

/* ==========================================================================
   5. TAB 2: BROCHURES & CERTIFICATES CENTER
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: flex-start;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.25s ease;
  position: relative;
}

.doc-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.doc-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan-accent);
  border: 1px solid rgba(0, 240, 255, 0.25);
  margin-bottom: 10px;
}

.doc-card-badge.cert {
  background: rgba(255, 85, 0, 0.1);
  color: var(--orange-primary);
  border-color: rgba(255, 85, 0, 0.25);
}

.doc-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.doc-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 6px;
}

.doc-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(10, 14, 23, 0.6);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  word-break: break-all;
}

.doc-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Upload Dropzone Sidebar */
.upload-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.dropzone-box {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(10, 14, 23, 0.5);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--orange-primary);
  background: rgba(255, 85, 0, 0.05);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.12);
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropzone-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. TAB 3: FULL WEB IMAGE MANAGER (CHANGE ALL IMAGES)
   ========================================================================== */
.image-categories-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.image-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.image-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card);
}

.image-preview-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #060910;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.image-card:hover .image-preview-wrap img {
  transform: scale(1.04);
}

.image-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: space-between;
}

.image-card-section-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-primary);
}

.image-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.image-card-path {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(10, 14, 23, 0.6);
  padding: 6px 10px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   7. MODAL DRAWER / EDIT DIALOG
   ========================================================================== */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}

.admin-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  height: min(90vh, 880px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.modal-container form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.admin-modal.open .modal-container {
  transform: scale(1);
}

.modal-header {
  flex-shrink: 0;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 24, 39, 0.6);
}

.modal-title-group h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-title-group p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 24px 28px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-body::-webkit-scrollbar {
  width: 7px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(10, 14, 23, 0.5);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 85, 0, 0.45);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--orange-primary);
}

.modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-footer {
  flex-shrink: 0;
  padding: 18px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(17, 24, 39, 0.6);
}

/* ==========================================================================
   8. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--orange-primary);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
  border-left-color: var(--green-success);
}

.toast.error {
  border-left-color: var(--red-danger);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .upload-sidebar-card {
    position: static;
  }
  .admin-topbar {
    padding: 0 16px;
  }
  .admin-main {
    padding: 24px 16px 40px;
  }
}

/* ==========================================================================
   PROMINENT LABORATORY BROCHURE UPLOAD COMPONENT
   ========================================================================== */
.lab-modal-brochure-box {
  background: linear-gradient(145deg, rgba(22, 32, 50, 0.95), rgba(13, 20, 36, 0.95));
  border: 1px solid rgba(255, 85, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 85, 0, 0.05);
}

.brochure-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

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

.modal-brochure-dropzone {
  border: 2px dashed rgba(255, 85, 0, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(10, 14, 23, 0.6);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-brochure-dropzone:hover, .modal-brochure-dropzone.dragover {
  border-color: var(--orange-primary);
  background: rgba(255, 85, 0, 0.08);
  transform: translateY(-1px);
}

.modal-dropzone-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.15);
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-brochure-actions {
  display: flex;
  gap: 10px;
}

.lab-card-brochure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(10, 14, 23, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 10px;
}

.btn-upload-direct {
  background: rgba(255, 85, 0, 0.12);
  color: var(--orange-primary);
  border: 1px solid rgba(255, 85, 0, 0.35);
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-upload-direct:hover {
  background: var(--orange-primary);
  color: #FFF;
}

