/* ==========================================================================
   STYLE.CSS - VERSION FINALE V5
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500;700&family=Lexend:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-page: #22284a;
  --white: #ffffff;
  --text-color: #333333;
  --primary-color: #ff5a00;
  --secondary-color: #22284a;
  --border-radius: 8px;

  --font-title: "Lexend", sans-serif;
  --font-text: "Geologica", sans-serif;
}

body {
  font-family: var(--font-text);
  background-color: var(--bg-page);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url("https://onefiche.fr/content/MOTIF/Filigrane/SVG/filigrane_monogramme.svg");
  background-repeat: repeat;
  background-size: 600px;
  background-position: center;
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
th,
label {
  font-family: var(--font-title);
}

a {
  text-decoration: none;
}

/* --- BOUTONS --- */
.btn {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s;
  border: none;
  gap: 8px;
}

.btn:disabled {
  background-color: #e0e0e0 !important;
  color: #999 !important;
  cursor: not-allowed;
  border: 1px solid #ccc !important;
  opacity: 0.7;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-blue-filled {
  background-color: #5765b0;
  color: white;
}

.btn-blue-filled:hover:not(:disabled) {
  background-color: #474c86;
}

.btn-orange-filled {
  background-color: #cc3f02;
  color: white;
}

.btn-orange-filled:hover:not(:disabled) {
  background-color: #822b0c;
}

.btn-blue-outlined {
  background-color: white;
  color: #5765b0;
  border: 1px solid #5765b0;
}

.btn-blue-outlined:hover:not(:disabled) {
  background-color: #f0f2f5;
}

.btn-orange-outlined {
  background-color: white;
  color: #cc3f02;
  border: 1px solid #cc3f02;
}

.btn-orange-outlined:hover:not(:disabled) {
  background-color: #fff3e0;
}

.btn-danger {
  background-color: #c62828;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background-color: #b71c1c;
}

.btn-success {
  background-color: #2e7d32;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background-color: #1b5e20;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  width: 100%;
  margin-top: 8px;
}

.btn-text {
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--primary-color);
}

.btn-texinput:checked+.slider {
  background-color: #5765b0;
}

/* --- GLOBAL LAYOUT --- */
.main-content {
  padding: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  flex-grow: 1;
}

/* --- NAVBAR & PROFILE --- */
.navbar {
  background: white;
  padding: 0 40px;
  height: 70px;
  border-bottom: 4px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-dropdown-container {
  position: relative;
  display: inline-block;
}

.user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 50px;
  transition: background-color 0.2s;
}

.user-profile-trigger:hover {
  background-color: #f5f7f9;
}

.user-avatar-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
}

.user-name-text {
  font-weight: 600;
  font-size: 14px;
  color: #22284a;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 10px;
  display: none;
  z-index: 1000;
  border: 1px solid #eee;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  gap: 10px;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: inherit;
}

.dropdown-item.logout {
  color: #cc3f02 !important;
}

.dropdown-item.logout .material-symbols-outlined {
  color: #cc3f02 !important;
}

.dropdown-item .material-symbols-outlined {
  font-size: 20px;
  color: #666;
}

.dropdown-item:hover .material-symbols-outlined {
  color: inherit;
}

.dropdown-item.logout:hover .material-symbols-outlined {
  color: #cc3f02 !important;
}

.dropdown-divider {
  height: 1px;
  background-color: #eee;
  margin: 8px 0;
}

.navbar-brand img {
  height: 40px;
  margin-right: 15px;
}

.brand-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}

.text-one {
  color: #22284a;
}

.text-bug {
  color: #ff5a00;
}

/* --- FORMS --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #22284a;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: var(--font-text);
  font-size: 15px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Login */
.login-logo {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 25px auto;
  height: auto;
  object-fit: contain;
}

.login-container {
  background: var(--white);
  padding: 40px 50px;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-top: 6px solid var(--border-highlight);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-container h1 {
  display: none;
}

.error-msg {
  background-color: #ffebee;
  color: #c62828;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
}

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  color: #666;
  text-decoration: underline;
}

/* Upload & Paste */
.btn-add-more {
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  color: #555;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 5px;
  display: inline-block;
}

.dynamic-input-group {
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}

.paste-area {
  border: 2px dashed #ccc;
  background-color: #f9f9f9;
  padding: 20px;
  text-align: center;
  color: #666;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s;
  cursor: pointer;
}

.paste-area:hover,
.paste-area.active {
  border-color: var(--secondary-color);
  background-color: #e3f2fd;
  color: var(--secondary-color);
}

/* --- ADMIN USERS --- */
.action-cell {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.action-btn i,
.action-btn span.material-icons,
.action-btn span.material-symbols-outlined {
  font-size: 20px;
}

.action-btn.btn-edit {
  color: #5765b0;
}

.action-btn.btn-edit:hover {
  background-color: #e3f2fd;
}

.action-btn.btn-pass {
  color: #666;
}

.action-btn.btn-pass:hover {
  background-color: #f5f7f9;
}

.action-btn.btn-del {
  color: #cc3f02;
}

.action-btn.btn-del:hover {
  background-color: #ffebee;
  color: #b71c1c;
}

.user-photo-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
}

table td img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- TABLEAUX & BADGES --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
}

thead {
  background-color: #f8f9fa;
}

th {
  padding: 18px 10px;
  text-align: left;
  color: #22284a;
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 2px solid #e0e0e0;
}

td {
  padding: 18px 10px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  font-size: 14px;
}

.page-name-tag {
  background: #f0f2f5;
  color: #555;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  display: inline-block;
}

.text-truncate {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

/* Badges liste */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.st-nouveau {
  background: #e3f2fd;
  color: #1565c0;
}

.st-encours {
  background: #f3e5f5;
  color: #7b1fa2;
}

.st-corrige {
  background: #e8f5e9;
  color: #2e7d32;
}

.st-ko {
  background: #fff3e0;
  color: #ef6c00;
}

/* Waiting valid */
.st-ferme {
  background: #eceff1;
  color: #455a64;
}

/* Profil Header */
.user-profile-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 30px;
  transition: background 0.2s;
  margin-right: 15px;
}

.user-profile-trigger:hover {
  background-color: #f0f2f5;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #eee;
  background-color: #eee;
}

.user-name-text {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 14px;
}

/* --- RECHERCHE --- */
.search-container {
  flex-grow: 1;
  margin: 0 30px;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border-radius: 30px;
  border: 1px solid #e0e0e0;
  font-family: var(--font-text);
  font-size: 14px;
  outline: none;
}

.search-icon-inside {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 20px;
  pointer-events: none;
}

/* Pagination & Filtres */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.page-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
  border-radius: 4px;
}

.page-btn.active {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sort-indicator {
  cursor: pointer;
  font-size: 10px;
  margin-left: 5px;
  color: #999;
}

.filter-icon {
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  margin-left: 1px;
  text-transform: none;
  color: #999;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-icon:hover,
.filter-icon.active {
  background-color: #e3f2fd;
  color: var(--secondary-color);
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  width: 280px;
  z-index: 1000;
  padding: 10px;
}

.filter-dropdown.show {
  display: block;
}

.filter-search {
  width: 100%;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 13px;
}

.filter-options {
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid #f0f0f0;
  padding-top: 5px;
}

.filter-option-item {
  display: flex;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.filter-option-item:hover {
  background-color: #f9f9f9;
}

.btn-text {
  color: #666;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* --- TOGGLE SWITCH --- */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked+.slider {
  background-color: #5765b0;
}

input:focus+.slider {
  box-shadow: 0 0 1px #5765b0;
}

input:checked+.slider:before {
  transform: translateX(24px);
}

.filter-option-item input {
  margin-right: 10px;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.btn-filter-reset {
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

.btn-filter-apply {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* Compteurs Dashboard */
.stats-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: var(--font-title);
}

.stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- VIEW.PHP --- */
.view-grid {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.view-main {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.view-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 320px;
}

.white-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: 100%;
  position: relative;
}

.top-row-grid {
  display: flex;
  gap: 25px;
  width: 100%;
  align-items: stretch;
}

.card-title-box {
  flex: 2;
  display: flex;
}

.card-status-box {
  flex: 1;
  display: flex;
}

.full-height {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header Titre */
.view-header-callout {
  padding: 20px 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-left-width: 10px;
  border-left-style: solid;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.view-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #888;
}

.view-header-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--secondary-color);
}

.callout-mineur {
  border-left-color: #fbc02d;
}

.callout-majeur {
  border-left-color: #ff9800;
}

.callout-bloquant {
  border-left-color: #d32f2f;
}

/* CONTENU TEXTE (Couleurs Inversées selon demande) */
.card-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.card-value {
  font-size: 15px;
  color: #22284a;
  font-weight: 500;
  margin-bottom: 25px;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left !important;
  display: block;
}

.scrolling-content {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
  border-bottom: 1px solid #f9f9f9;
}

.scrolling-content::-webkit-scrollbar {
  width: 6px;
}

.scrolling-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* Statut View */
.status-value-big {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 50px;
  display: inline-block;
  letter-spacing: 0.5px;
  min-width: 150px;
  white-space: nowrap;
}

.bg-nouveau {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

.bg-cours {
  background: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #e1bee7;
}

.bg-corrige {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.bg-attente {
  background: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffe0b2;
  font-size: 13px;
}

/* Wait */
.bg-ferme {
  background: #eceff1;
  color: #455a64;
  border: 1px solid #cfd8dc;
}

/* Card Rapporteur (Aérée) */
.user-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  margin-top: 10px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
}

.sidebar-info-line {
  font-size: 14px;
  color: #22284a;
  margin-bottom: 8px;
  line-height: 1.5;
}

.sidebar-info-line strong {
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  min-width: 160px;
  display: inline-block;
  font-weight: 700;
}

/* --- COMMENTAIRES (Nouvelle structure) --- */
.comments-container {
  background: #f5f7fa;
  padding: 20px;
  border-radius: 8px;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 90%;
}

.comment-row.me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.comment-row.system-row {
  align-self: center;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
}

.comment-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.comment-bubble.user {
  background: white;
  border: 1px solid #e0e0e0;
  border-top-left-radius: 0;
}

.comment-bubble.me {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-top-right-radius: 0;
  text-align: right;
}

.comment-bubble.system {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  text-align: center;
  color: #e65100;
  font-style: italic;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 13px;
}

.comment-actions {
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  gap: 8px;
  padding-top: 5px;
}

.comment-row:hover .comment-actions {
  opacity: 1;
}

.action-icon {
  cursor: pointer;
  font-size: 16px;
  color: #999;
}

.action-icon:hover {
  color: var(--primary-color);
}

.comment-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
  display: block;
}

.system-date {
  font-size: 10px;
  color: #bf360c;
  margin-left: 8px;
  opacity: 0.7;
}

.comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-text);
  resize: none;
}

/* Modales */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-box,
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  text-align: left;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.radio-option:hover {
  background: #f9f9f9;
  border-color: #ccc;
}

.radio-option input {
  margin-right: 10px;
}

/* Galerie & Upload */
.photo-upload-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #eee;
}

.photo-upload-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 40, 74, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-upload-container:hover .photo-upload-overlay {
  opacity: 1;
}

.photo-upload-text {
  color: white;
  font-size: 11px;
  text-align: center;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gallery-item {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 900px) {
  .view-grid {
    flex-direction: column;
  }

  .view-sidebar {
    width: 100%;
    min-width: auto;
  }
}