/* Road Trip Map - Mobile-first responsive CSS */

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

:root {
  --color-primary: #2a9d8f;
  --color-primary-hover: #238b7e;
  --color-primary-dark: #264653;
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-border: #e8e4df;
  --color-error: #d32f2f;
  --color-error-bg: #ffebee;
  --color-success: #388e3c;
  --color-success-bg: #e8f5e9;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --carousel-height: 100px; /* thumbnail + label + padding */
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html, body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

body {
  padding: var(--space-sm);
}

/* Typography */
h1 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  margin-top: var(--space-md);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--color-text);
}

input[type="text"],
textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: inherit;
  color: var(--color-text);
  background-color: var(--color-surface);
  line-height: 1.4;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Buttons */
.button {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.button-primary {
  background-color: var(--color-primary);
  color: white;
}

.button-primary:hover {
  background-color: var(--color-primary-hover);
}

.button-primary:active {
  transform: scale(0.98);
}

.button-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.button-secondary:hover {
  background-color: rgba(42, 157, 143, 0.05);
}

/* Messages */
.message {
  padding: var(--space-sm);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.message.error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.message.success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.message.hidden {
  display: none;
}

/* Cards */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow);
}

/* Results section */
.results {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success);
  border-radius: var(--radius);
}

.results.hidden {
  display: none;
}

.result-item {
  margin-bottom: var(--space-md);
}

.result-label {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.result-value {
  font-family: 'Courier New', monospace;
  background-color: var(--color-surface);
  padding: var(--space-sm);
  border-radius: var(--radius);
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.copy-button {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation */
.nav {
  margin-bottom: var(--space-lg);
}

.nav a {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  margin-right: var(--space-sm);
  margin-bottom: var(--space-xs);
}

/* Tablet and up */
@media (min-width: 768px) {
  body {
    padding: var(--space-lg);
  }

  .container {
    max-width: 700px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .card {
    padding: var(--space-lg);
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .container {
    max-width: 800px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.site-footer a {
  color: var(--color-text-light);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* My Trips (Homepage) */
.my-trip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.my-trip-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.my-trip-item:first-child {
  padding-top: 0;
}

.my-trip-name {
  font-weight: 600;
  color: var(--color-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-trip-links {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.my-trip-link {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8rem;
}

/* Hero Section (Homepage) */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  text-align: center;
  color: white;
  margin: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-lg);
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-sm);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.hero .button-hero {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: white;
  color: var(--color-primary-dark);
  border: none;
  border-radius: 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.hero .button-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--color-primary-dark);
}

/* How It Works Steps */
.steps {
  list-style: none;
  padding: 0;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Page Header (inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-xs) var(--space-sm);
  color: white;
  margin: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-xs);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}

.page-header h1 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.page-header p {
  display: none;
}

.page-header .nav {
  margin-bottom: 0;
  flex-shrink: 0;
}

.page-header .nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0;
  font-size: 0.85rem;
}

.page-header .nav a:hover {
  color: white;
}

@media (min-width: 768px) {
  .hero {
    margin: calc(-1 * var(--space-lg));
    margin-bottom: var(--space-lg);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
  }

  .page-header {
    margin: calc(-1 * var(--space-lg));
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    display: block;
  }

  .page-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
    text-align: left;
  }

  .page-header p {
    display: block;
    font-size: 1rem;
  }

  .page-header .nav {
    margin-bottom: var(--space-sm);
  }

  .page-header .nav a {
    font-size: 1rem;
  }
}

/* Post Page Styles (Phase 5) */

#fileInput {
  display: none;
}

.add-photo-button {
  width: 100%;
  padding: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .add-photo-button {
    padding: var(--space-md);
    font-size: 1.1rem;
  }
}

/* Photo Preview Section */
.preview-section {
  display: none;
}

.preview-section.visible {
  display: block;
}

.photo-thumbnail {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.place-name-display {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background-color: var(--color-bg);
  border-radius: var(--radius);
}

.place-name-display.no-gps {
  color: var(--color-error);
  background-color: var(--color-error-bg);
}

/* Pin-drop Map */
#pinDropMap {
  width: 100%;
  height: 300px;
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.map-section {
  display: none;
}

.map-section.visible {
  display: block;
}

.map-instruction {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background-color: var(--color-bg);
  border-radius: var(--radius);
}

/* Caption Input */
.caption-input {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: inherit;
  color: var(--color-text);
  background-color: var(--color-surface);
  margin-bottom: var(--space-md);
}

.caption-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

/* Post Button Group */
.post-button-group {
  display: flex;
  gap: var(--space-sm);
}

.post-button-group button {
  flex: 1;
}

.post-button-group .button-primary {
  flex: 2;
}

/* Photo Map on Post Page */
.photo-map-section {
  margin-top: var(--space-sm);
  display: none;
}

.photo-map-section.visible {
  display: block;
}

.photo-map-section h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  margin-top: 0;
}

.post-photo-map {
  width: 100%;
  height: 300px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: visible;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .post-photo-map {
    height: 500px;
  }
}

/* Photo List */
.photo-list {
  margin-top: var(--space-sm);
}

.photo-list.empty {
  display: none;
}

.photo-list h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  margin-top: 0;
}

/* View Link Section */
.view-link-section {
  margin-top: var(--space-sm);
}

.view-link-section h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  margin-top: 0;
}

.view-link-section p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  max-width: 300px;
  z-index: 1000;
}

.toast {
  padding: var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  animation: slideInRight 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.toast.error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

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

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

.toast.dismissing {
  animation: slideOutRight 0.3s ease;
}

/* Responsive adjustments for post page */
@media (min-width: 1024px) {
  .toast-container {
    max-width: 400px;
  }
}

/* Map View Styles (Phase 6) */

/* Full-viewport map container */
body.map-page {
  --map-header-height: 56px;
  padding: 0;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 100vh;
}

/* Map header - floating trip name */
.map-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--map-header-height);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* Back button in map header */
.map-back {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.map-back:hover {
  color: white;
  text-decoration: none;
}

/* Push MapLibre zoom controls below floating header on view page */
body.map-page .maplibregl-ctrl-top-left {
  top: calc(var(--map-header-height, 56px) + 10px);
}

/* Route toggle button - floating control */
.map-control {
  position: fixed;
  bottom: 30px;
  right: 10px;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background-color: white;
  color: var(--color-text);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.map-control:hover {
  background-color: var(--color-primary);
  color: white;
}

.map-control:active {
  transform: scale(0.98);
}

/* Empty message overlay */
.map-empty {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--color-text-light);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Clip map tiles to rounded corners without clipping popups */
.post-photo-map .maplibregl-canvas-container {
  border-radius: 8px;
  overflow: hidden;
}

/* MapLibre popup customization — scoped via className:'photo-map-popup' */
.photo-map-popup .maplibregl-popup-content {
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  padding: 0;
  overflow: hidden;
  margin: 0;
  min-width: 220px;
}

.photo-map-popup {
  margin-bottom: 20px;
}

/* Hide default close button — disabled via closeButton:false, CSS as fallback */
.photo-map-popup .maplibregl-popup-close-button {
  display: none;
}

/* Dark tip — override each anchor direction's colored border */
.photo-map-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: rgba(0, 0, 0, 0.6);
}
.photo-map-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.photo-map-popup.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.photo-map-popup.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: rgba(0, 0, 0, 0.6);
}
.photo-map-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(0, 0, 0, 0.6);
}
.photo-map-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(0, 0, 0, 0.6);
}
.photo-map-popup.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.photo-map-popup.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: rgba(0, 0, 0, 0.6);
}

/* Photo popup component */
.photo-popup {
  position: relative;
  line-height: 0;
}

.photo-popup-img {
  width: 100%;
  min-height: 150px;
  max-height: 250px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.photo-popup-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  line-height: 1.3;
}

.photo-popup-place {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.photo-popup-caption {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.photo-popup-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 0.8rem;
  line-height: 24px;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.photo-popup-delete:hover {
  background: rgba(211, 47, 47, 0.9);
}

/* Floating carousel on view page */
.view-carousel-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  padding: var(--space-xs) 0;
  display: none;
}

.view-carousel-container.active {
  display: block;
}

.map-page .map-control.above-carousel {
  bottom: calc(var(--carousel-height) + var(--space-sm));
}

.view-carousel-container .carousel-item-label {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile popup sizing */
@media (max-width: 480px) {
  .photo-map-popup .maplibregl-popup-content {
    min-width: 180px;
  }
}

/* Photo Carousel - Horizontal scrollable thumbnail strip */

.carousel-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-xs);
  padding: var(--space-xs);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-strip::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 120px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.carousel-item.selected {
  border-color: var(--color-primary);
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.carousel-item-label {
  padding: 2px var(--space-xs);
  font-size: 0.7rem;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-item-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}

.carousel-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 0;
}

.carousel-action-btn svg {
  width: 16px;
  height: 16px;
}

.carousel-action-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Fullscreen Image Viewer */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
}

.fullscreen-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.fullscreen-overlay .fullscreen-save {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive: Desktop carousel item width */
@media (min-width: 768px) {
  .carousel-item {
    width: 150px;
  }
}

/* Responsive map header for mobile */
@media (max-width: 480px) {
  body.map-page {
    --map-header-height: 44px;
  }

  .map-header {
    font-size: 1rem;
    padding: 0 var(--space-sm);
  }

  .map-control {
    bottom: 20px;
    right: 8px;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
  }

  .map-empty {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) {
  .map-header {
    font-size: 1.3rem;
    padding: var(--space-lg) var(--space-lg);
  }

  .map-control {
    bottom: 40px;
    right: 20px;
    padding: var(--space-sm) var(--space-md);
  }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
  .map-header {
    font-size: 1.5rem;
  }
}

/* Upload Status Bar */
.upload-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #d0d0d0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s, transform 0.3s;
}

.upload-status-dismiss {
  opacity: 0;
  transform: translateY(100%);
}

.upload-status-collapsed {
  position: relative;
  padding: 12px 16px;
  cursor: pointer;
  overflow: hidden;
}

.upload-status-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: rgba(51, 136, 255, 0.15);
  transition: width 0.3s ease;
}

.upload-status-label {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2d3748;
}

.upload-status-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 1;
}

.upload-status-expanded {
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid #e0e0e0;
  padding: 8px 16px;
}

.upload-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.85rem;
  color: #4a5568;
}

.upload-status-icon {
  width: 16px;
  text-align: center;
  font-weight: bold;
}

.status-done { color: #38a169; }
.status-failed { color: #e53e3e; }
.status-active { color: #3388ff; }
.status-queued { color: #a0aec0; }

.upload-status-message {
  color: #718096;
  font-style: italic;
}

.has-upload-badge::after {
  content: attr(data-upload-badge);
  position: absolute;
  top: -6px;
  right: -6px;
  background: #3388ff;
  color: white;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
