@import url("colors.css");

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background-color: #f4f7f6;
  color: #333;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-card h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
}

.form-group label {
  display: block;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px; /* space-x-2 equivalent */
  width: auto; /* Ensure it's not full width */
}

.btn-success {
  background-color: #28a745; /* Green */
  color: #fff;
}

.btn-danger {
  background-color: #dc3545; /* Red */
  color: #fff;
}

.btn-icon {
  padding: 0.5rem; /* Smaller padding for icon buttons */
  width: 40px; /* Fixed width */
  height: 40px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Circular shape */
}

.avatar-thumbnail {
  width: 96px; /* Equivalent to w-24 (96px) */
  height: 96px; /* Equivalent to h-24 (96px) */
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px; /* Rounded corners */
  margin-bottom: 8px; /* Equivalent to mb-2 (8px) */
}

#brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* Equivalent to gap-4 (16px) */
}

#brand-list > div {
  flex: 0 0 auto; /* Prevent items from growing or shrinking */
  width: 200px; /* Example fixed width for brand items */
  text-align: center;
}

.button-separator {
  width: 1px;
  height: 1.5em; /* Adjust height to match text size */
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.mb-4 {
  margin-bottom: 16px; /* Equivalent to mb-4 */
}

.flex-col {
  flex-direction: column;
}

.space-x-4 > *:not([hidden]) ~ *:not([hidden]) {
  margin-left: 16px; /* Equivalent to space-x-4 */
}

.flex-grow {
  flex-grow: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-green-500 {
  color: #22c55e; /* A shade of green */
}

.text-red-500 {
  color: #ef4444; /* A shade of red */
}

.brand-details-thumbnail {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.items-start {
  align-items: flex-start;
}

.mt-4 {
  margin-top: 16px;
}

.mr-4 {
  margin-right: 16px;
}

.pr-4 {
  padding-right: 16px;
}

.pl-4 {
  padding-left: 16px;
}

.vertical-separator {
  width: 1px;
  background-color: #ccc;
  margin: 0 16px;
}

/* Brand Details Tabs */
.brand-details-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0; /* Light gray border */
  margin-bottom: 1rem;
}

.brand-details-tab {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px; /* Overlap with the bottom border of the tabs container */
  color: #4a5568; /* Darker gray text */
  font-weight: 500;
  text-decoration: none;
}

.brand-details-tab:hover {
  color: #2d3748; /* Even darker gray on hover */
}

.brand-details-tab.tab-active {
  color: var(--primary-color); /* Primary color for active tab */
  border-color: #e2e8f0;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  background-color: #fff;
  border-bottom: 2px solid var(--primary-color); /* Active tab indicator */
}

/* Brand Image Upload */
.brand-image-wrapper {
  position: relative;
  /* Ensure the wrapper has the same dimensions as the image if needed */
  display: inline-block; /* Or block, depending on desired flow */
  overflow: hidden; /* Hide overflow from absolute button */
  border-radius: 8px;
}

.brand-image-wrapper .brand-details-thumbnail {
  /* Existing styling should apply */
}

.brand-image-wrapper .hidden {
  display: none;
}

.brand-image-wrapper button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-align: center;
}

.brand-image-wrapper:hover button {
  opacity: 1;
}

/* Overview Content */
.grid {
  display: grid;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-semibold {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.h-32 {
  height: 8rem; /* 128px */
}

.bg-gray-300 {
  background-color: #d1d5db; /* A light gray */
}

.rounded-md {
  border-radius: 0.375rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.justify-center {
  justify-content: center;
}

.text-5xl {
  font-size: 3rem; /* 48px */
}

.text-gray-500 {
  color: #6b7280; /* A medium gray */
}

.bg-gray-200 {
  background-color: #e5e7eb; /* A light gray */
}

.bg-blue-500 {
  background-color: #3b82f6; /* A shade of blue */
}

.text-white {
  color: #fff;
}

.text-gray-700 {
  color: #374151; /* A darker gray */
}

.project-thumbnail {
  object-fit: cover;
  object-position: center;
}

/* Custom Tailwind-like classes for project thumbnail overlay */
.relative-container {
  position: relative;
}

.absolute-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: rgba(107, 114, 128, 0.7); /* Semi-transparent medium gray */
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  border-top-left-radius: 0.375rem; /* Matches rounded-md */
  padding: 0.25rem 0.5rem; /* Add padding */
}

.object-cover-img {
  object-fit: cover;
}

/* Breadcrumbs */
.breadcrumbs ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: ">";
  margin: 0 0.5rem;
  color: #6b7280; /* text-gray-500 */
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li:last-child {
  color: #4a5568; /* Darker gray for the current page */
  font-weight: 500;
}

/* Project Details Tabs */
.project-details-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0; /* Light gray border */
  margin-bottom: 1rem;
}

.project-details-tab {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px; /* Overlap with the bottom border of the tabs container */
  color: #4a5568; /* Darker gray text */
  font-weight: 500;
  text-decoration: none;
}

.project-details-tab:hover {
  color: #2d3748; /* Even darker gray on hover */
}

.project-details-tab.tab-active {
  color: var(--primary-color); /* Primary color for active tab */
  border-color: #e2e8f0;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  background-color: #fff;
  border-bottom: 2px solid var(--primary-color); /* Active tab indicator */
}

/* Pagination Styles */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem; /* mb-4 equivalent */
}

.pagination-item {
  padding: 0.5rem 0.75rem; /* px-3 py-1 equivalent, adjusted for better look */
  border-radius: 0.375rem; /* rounded-md equivalent */
  border: 1px solid #d1d5db; /* border-gray-300 equivalent */
  color: #374151; /* text-gray-700 equivalent */
  background-color: #e5e7eb; /* bg-gray-200 equivalent */
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.pagination-item:hover {
  background-color: #d1d5db; /* hover:bg-gray-300 equivalent */
}

.pagination-item.active {
  background-color: var(--primary-color); /* bg-blue-500 equivalent */
  color: #fff; /* text-white equivalent */
  border-color: var(--primary-color);
}

.pagination-ellipsis {
  padding: 0.5rem 0.75rem;
  color: #6b7280; /* text-gray-500 equivalent */
}

.pagination-gap {
  margin-left: 0.5rem; /* gap-2 equivalent */
}

/* Ad List Styles */
.arrow-indicator {
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.arrow-indicator.expanded {
  transform: rotate(90deg);
}

.hidden {
  display: none;
}

/* Utility Classes for Table Styling */
.p-4 {
  padding: 1rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.min-w-full {
  min-width: 100%;
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 1px;
}

.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: #e2e8f0;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-xs {
  font-size: 0.75rem;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray-900 {
  color: #111827;
}

.border-t {
  border-top-width: 1px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.asset-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.asset-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.asset-icon svg {
  width: 50px;
  height: 50px;
  fill: #888;
}

.asset-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  width: 100%;
  word-break: break-all;
  overflow-wrap: break-word;
}

.asset-breadcrumbs {
  margin-bottom: 1rem;
}

.asset-image-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clickable {
  cursor: pointer;
}

.input-bottom-line {
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 0.5rem 0;
  background-color: transparent;
  width: 100%;
  color: var(--text-color-light); /* Lighter color for better visibility in dark themes */
}

.input-bottom-line:hover {
  border-bottom-color: var(--primary-color); /* Highlight on hover */
}

.border-0 {
  border-width: 0 !important;
}

/* The switch - a wrapper around the checkbox */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 80vw;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 5px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1050;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1040;
}

.drawer.open ~ .drawer-background {
  display: block;
}


.drawer-content {
  position: relative; /* Needed for absolute positioning of children */
  padding: 20px;
}

.drawer-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--text-color); /* Use theme variable */
  cursor: pointer;
  z-index: 1060; /* Ensure it's above other drawer content */
}

.drawer-close-button:hover {
  color: var(--primary-color); /* Highlight on hover */
}

.drawer-header {
  padding-right: 40px; /* Make space for the close button */
}

.drawer-content img,
.drawer-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.checkered-bg {
  background-image:
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .hero-section .container {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 2rem !important;
  }

  .hero-section p {
    font-size: 1rem !important;
  }

  .hero-section .image-grid {
    grid-template-columns: 1fr !important;
  }

  .key-features-section .container {
    flex-direction: column;
    padding: 0;
  }

  .key-features-section .image-placeholder {
    min-height: 200px !important;
  }

  .key-features-section .content-area {
    padding: 2rem !important;
  }

  .how-it-works-section .container {
    padding: 2rem 1rem;
  }

  .how-it-works-section h2 {
    font-size: 2rem !important;
  }

  .how-it-works-section .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .dynamic-creative-preview-section {
    flex-direction: column;
  }

  .dynamic-creative-preview-section .controls-area {
    padding: 1rem !important;
  }

  .dynamic-creative-preview-section .controls-area input {
    width: 100% !important;
  }

  .brand-details-tabs, .project-details-tabs {
    flex-wrap: wrap;
  }

  .brand-details-tab, .project-details-tab {
    flex-basis: 50%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  .brand-details-tab.tab-active, .project-details-tab.tab-active {
    border-bottom: 2px solid var(--primary-color);
  }

  .brand-details-page .flex.mt-4 {
    flex-direction: column;
  }

  .brand-details-page .vertical-separator {
    display: none;
  }

  .brand-details-page .flex-grow.pl-4 {
    padding-left: 0;
  }

  .brand-details-page .brand-summary {
    margin-bottom: 1rem;
  }

  .brand-details-page .grid-cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .asset-icon {
    width: 60px;
    height: 60px;
  }

  .asset-icon svg {
    width: 40px;
    height: 40px;
  }

  .asset-label {
    font-size: 0.75rem;
  }

  .drawer {
    width: 100vw;
  }
}

.bannerbros-logo-wrapper {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
}

.bannerbros-logo-wrapper img {
  height: 1.5em; /* Adjust as needed */
  width: auto;
  vertical-align: middle;
}

body.light-theme .bannerbros-logo-wrapper {
  background-color: #2d3748; /* Dark background for light theme */
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline;
}

.htmx-request.htmx-indicator {
  display: inline;
}

.htmx-request.htmx-indicator {
  margin-left: 10px;
  color: var(--primary-color);
}

.version-picker {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.version-picker select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--card-bg-color);
  color: var(--text-color);
  font-size: 14px;
  min-width: 180px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none; /* Remove default dropdown arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

.version-picker select:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.drawer-content h2 {
  margin-bottom: 1rem;
  text-align: left;
}





/* Apply theme variables */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.input-bottom-line::placeholder {
  color: var(--placeholder-color);
}

header {
  background-color: var(--header-bg-color); /* Override inline style */
  transition: background-color 0.3s ease;
}

.login-card {
  background-color: var(--card-bg-color);
  transition: background-color 0.3s ease;
}

.brand-details-tab.tab-active {
  background-color: var(--card-bg-color);
  border-color: var(--border-color);
}

.project-details-tab.tab-active {
  background-color: var(--card-bg-color);
  border-color: var(--border-color);
}

.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--border-color);
}

.bg-gray-50 {
  background-color: var(--header-bg-color);
}

.asset-icon {
  border-color: var(--border-color);
}

.input-bottom-line {
  border-bottom-color: var(--border-color);
}

.drawer {
  background-color: var(--card-bg-color);
}

.drawer-content .close-drawer {
  color: var(--text-color);
}

.vertical-separator {
  background-color: var(--border-color);
}

.brand-details-tabs, .project-details-tabs {
  border-bottom-color: var(--border-color);
}

.brand-details-tab, .project-details-tab {
  color: var(--text-color);
}

.brand-details-tab:hover, .project-details-tab:hover {
  color: var(--primary-color);
}

.pagination-item {
  border-color: var(--border-color);
  color: var(--text-color);
  background-color: var(--header-bg-color);
}

.pagination-item:hover {
  background-color: var(--border-color);
}

.pagination-ellipsis {
  color: var(--text-color);
}

.bg-gray-200 {
  background-color: var(--header-bg-color);
}

.text-gray-700 {
  color: var(--text-color);
}

.text-gray-500 {
  color: var(--text-color);
}

.bg-gray-300 {
  background-color: var(--border-color);
}

.text-gray-900 {
  color: var(--text-color);
}

.hover\:bg-gray-100:hover {
  background-color: var(--header-bg-color);
}

.asset-icon svg {
  fill: var(--text-color);
}

.breadcrumbs li + li::before {
  color: var(--text-color);
}

.breadcrumbs li:last-child {
  color: var(--text-color);
}

.relative-container .absolute-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

.checkered-bg {
  background-image:
    linear-gradient(45deg, var(--border-color) 25%, transparent 25%),
    linear-gradient(-45deg, var(--border-color) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.hero-section .container {
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
}

.hero-section .hero-content {
  flex: 1;
}

.hero-section h1, .hero-section .hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section .hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-section .image-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.key-features-section .container {
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 4rem auto;
  box-shadow: 0 4px 12px var(--shadow-color);
  border-radius: 8px;
  overflow: hidden;
}

.key-features-section .image-placeholder {
  flex: 1;
  background-image: url('images/laptop.png');
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.key-features-section .content-area {
  flex: 1.5;
  padding: 4rem;
  background-color: var(--header-bg-color);
}

.key-features-section h2, .key-features-section .key-features-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.key-features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.key-features-section .feature-card {
  padding: 2rem;
  border-radius: 8px;
}

.pricing-card-title {
  margin-bottom: 1rem;
}

.pricing-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.pricing-card .pricing-list {
  flex-grow: 1;
}

.how-it-works-section {
  padding: 4rem 0;
}

.how-it-works-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.how-it-works-section .how-it-works-steps {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 3rem;
}

.dynamic-creative-preview-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.dynamic-creative-preview-section .iframe-container {
  flex: 0 0 300px;
}

.dynamic-creative-preview-section .controls-area {
  flex: 1;
  padding: 2rem;
  border-radius: 8px;
}

#creative-iframe {
  width: 300px;
  height: 250px;
  border: 0;
}

.dynamic-creative-preview-section .controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dynamic-creative-preview-section .image-preset-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.dynamic-creative-preview-section .image-upload-label {
  width: 50px;
  height: 50px;
  border-radius: 40px;
  cursor: pointer;
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-it-works-description {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.pricing-list {
  list-style: none;
  padding: 0;
}

.pricing-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.pricing-list li strong {
  margin-right: 5px;
}

.info-circle {
  display: inline-block;
  margin-left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative; /* For tooltip positioning */
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the info circle */
  left: 50%;
  margin-left: -110px; /* Use half of the width to center */
  transition: opacity 0.3s;
  font-weight: normal;
  font-size: 0.875rem;
  line-height: 1.4;
}

.tooltip-text.visible {
  visibility: visible;
  opacity: 1;
}

.how-it-works-heading {
  font-size: 1.75rem;
}

.email-form-container {
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.email-form {
  display: flex;
  gap: 1rem;
}

.email-form .form-control {
  flex-grow: 1;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
}


.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}


/* Header Styles */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--header-bg-color);
  position: relative; /* Needed for mobile menu positioning */
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
}

.theme-selector {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--card-bg-color);
  color: var(--text-color);
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

.theme-selector:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.theme-switcher-container {
  /* Removed margin-left as it's now handled by the gap in .theme-controls */
}

/* Mobile Navigation Styles */
.mobile-nav {
  display: none; /* Hidden by default */
}


.hamburger-button {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  top: 100%; /* Position below the header */
  right: 0;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-color);
  padding: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
}

.mobile-menu-link:hover {
  background-color: var(--header-bg-color);
}

.theme-switcher-container-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive Media Query */
@media (max-width: 768px) {
  .desktop-nav {
    display: none; /* Hide desktop nav on mobile */
  }

  .mobile-nav {
    display: block; /* Show mobile nav */
  }
}

/* Image Preview Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-button {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.prev-button,
.next-button {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next-button {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev-button {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.prev-button:hover,
.next-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Tabs */
.tabs-container {
  width: 100%;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  bottom: -1px;
}

.tab-lifted {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.tab-active {
  border-color: var(--border-color);
  border-bottom-color: var(--background-color);
  background-color: var(--background-color);
}

/* New Project Card Styling */
.create-project-card {
  width: 100%;
  height: 8rem; /* h-32 */
  border-radius: 0.375rem; /* rounded-md */
  margin-bottom: 0.5rem; /* mb-2 */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg-color); /* bg-gray-200 equivalent, but using theme variable */
  border: 1px solid var(--border-color); /* Added for consistency with other cards */
}

.create-project-icon {
  font-size: 3rem; /* text-5xl */
  color: var(--text-color-light); /* text-gray-500 equivalent, but using theme variable */
}

#modal-backdrop {
  z-index: 1040; /* Ensure it's above other content */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#modal-backdrop:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background-color: var(--card-bg-color);
  padding: 1.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  width: 90%;
  max-width: 500px;
  max-height: 90vh; /* Limit height to prevent overflow on smaller screens */
  overflow-y: auto; /* Enable scrolling if content exceeds max-height */
  position: relative; /* Needed for absolute positioning of close button */
}

.modal-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.error-message {
  color: var(--error-color);
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem; /* Equivalent to mb-1 (4px) */
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-secondary {
  background-color: var(--header-bg-color); /* bg-gray-300 equivalent, using theme */
  color: var(--text-color); /* text-gray-800 equivalent, using theme */
  padding: 0.5rem 1rem; /* px-4 py-2 */
  border-radius: 0.25rem; /* rounded-md */
  margin-right: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--border-color); /* Slightly darker on hover */
}

.close-modal-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color-light);
  cursor: pointer;
  z-index: 10; /* Ensure it's above modal content */
}

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

@media (max-width: 768px) {
  .modal-dialog {
    width: 95%;
    margin: 1rem;
  }
}

/* Spinner Animation */
@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
  margin-left: 10px;
}

.edit-icon {
  color: var(--text-color-light);
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

h1.group:hover .edit-icon {
  opacity: 1;
}

/* InfoTab Styles */
.detail-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.detail-label {
  min-width: 120px; /* Adjust as needed for alignment */
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: var(--text-color-light);
  /* Removed margin-bottom as it's now a flex item */
}

.detail-value {
  flex-grow: 1; /* Allow value to take remaining space */
  font-size: 1rem;
  color: var(--text-color);
  padding: 0.5rem 0.75rem; /* Consistent padding */
  border: 1px solid var(--border-color); /* Add border for visual separation */
  border-radius: 4px;
  background-color: var(--card-bg-color); /* Use card background for consistency */
}

.manifest-download-container,
.feed-url-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-grow: 1; /* Allow container to take remaining space */
}

.feed-input {
  flex-grow: 1;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--card-bg-color);
  color: var(--text-color);
}

.copy-button {
  /* Uses existing .btn .btn-primary styles */
  flex-shrink: 0;
}

/* EditSetupTab Styles */
.edit-setup-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.setup-edit-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.setup-edit-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.setup-edit-subtitle {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.detail-item-edit {
  margin-bottom: 1rem;
}

.detail-label-edit {
  display: block;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: var(--text-color-light);
  margin-bottom: 0.25rem;
}

.edit-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--card-bg-color);
  color: var(--text-color);
}

.edit-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.setup-edit-table thead th {
  background-color: var(--header-bg-color);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.setup-edit-table tbody td {
  padding: 1rem 1.5rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.setup-edit-table tbody tr:last-child td {
  border-bottom: none;
}

.setup-edit-table tbody tr:hover {
  background-color: var(--header-bg-color); /* Slightly lighter background on hover */
}

/* InfoTab Creatives Section Styles */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

/* Creative Actions */
.creative-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.creative-action-icon {
  font-size: 1.1em;
  color: var(--text-color-light);
  cursor: pointer;
  transition: color 0.2s ease-in-out;
  text-decoration: none; /* Remove underline from links */
  background: none;
  border: none;
  padding: 0;
}

.creative-action-icon:hover {
  color: var(--primary-color);
}

.creative-action-icon.delete-icon:hover {
  color: var(--error-color);
}

/* Creative Card Layout (Modified) */
.creative-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-color);
  padding: 1rem;
  position: relative;
  min-height: 120px;
}

.creative-card-main-info {
  flex-grow: 1;
  margin-bottom: 0.5rem;
}

.creative-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.creative-card .creative-size {
  margin: 0;
  color: var(--text-color-light);
  font-size: 0.85rem;
}

.creative-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto; /* Push footer to bottom */
}

.creative-card .creative-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.master-size-toggle.filled {
  color: var(--primary-color);
}

.master-size-toggle.outline {
  color: var(--text-color-light);
}

.creative-enabled-switch {
  /* Uses existing .switch styles */
}

/* Ensure the master size icon is aligned with other action icons */
.creative-master-size .master-size-icon {
  margin-left: 0;
}

/* Creative Upload Modal Styles */
.creative-upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creative-upload-modal-dialog {
  background-color: var(--card-bg-color);
  padding: 20px;
  border-radius: 8px;
  width: 600px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px var(--shadow-color);
  position: relative;
}

.creative-upload-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.creative-upload-modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: var(--text-color);
}

.creative-upload-modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text-color);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creative-upload-modal-close:hover {
  color: var(--primary-color);
}

.folder-upload-area {
  border: 2px dashed var(--border-color);
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: var(--header-bg-color);
  transition: border-color 0.2s ease;
}

.folder-upload-area:hover {
  border-color: var(--primary-color);
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.dimensions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.flex-1 {
  flex: 1;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray-500 {
  color: #6b7280; /* A medium gray */
}

.selected-files-container {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
}

.selected-files-container.hidden {
  display: none;
}

.dimension-fields-container.hidden {
  display: none;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--card-bg-color);
  color: var(--text-color);
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-secondary {
  background-color: var(--header-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn:hover {
  opacity: 0.9;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Additional classes for creative upload modal */
.folder-icon {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.absolute-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.files-list {
  margin: 5px 0;
  padding-left: 20px;
}

/* Profile Dropdown Styles */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--error-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-color);
  z-index: 1000;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  width: max-content;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%; /* Full width to match dropdown width */
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background-color: var(--header-bg-color);
}

.dropdown-item i {
  width: 20px;
  margin-right: 0.5rem;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
}

.logout-btn {
  color: var(--error-color) !important;
  font-weight: 500;
}

.notification-count {
  background-color: var(--error-color);
  color: white;
  border-radius: 10px;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  margin-left: auto; /* Push to the right in a flex container */
  flex-shrink: 0; /* Prevent it from shrinking */
}

/* Mobile Profile Section */
.mobile-profile-section {
  width: 100%;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-profile-header {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.mobile-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  object-fit: cover;
}

.mobile-username {
  font-weight: 500;
  color: var(--text-color);
}

/* Theme Controls in Dropdown */
.theme-controls-dropdown {
  background-color: var(--header-bg-color);
  border-radius: 4px;
  margin: 0.5rem 0;
  width: 100%; /* Full width inside dropdown */
}

.theme-selector-container label,
.theme-mode-container label {
  color: var(--text-color);
  display: block; /* Full width labels */
}

.theme-selector-container select {
  background-color: var(--card-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  width: 100%;
}

.theme-switcher-container {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.theme-switcher-container input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switcher-container .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.theme-switcher-container .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.theme-switcher-container input:checked + .slider {
  background-color: var(--primary-color);
}

.theme-switcher-container input:checked + .slider:before {
  transform: translateX(26px);
}

.theme-controls-mobile .theme-switcher-container-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive Media Query */
@media (max-width: 768px) {
  .desktop-nav {
    display: none; /* Hide desktop nav on mobile */
  }

  .mobile-nav {
    display: block; /* Show mobile nav */
  }
}

/* Image Preview Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-button {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.prev-button,
.next-button {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next-button {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev-button {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.prev-button:hover,
.next-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Tabs */
.tabs-container {
  width: 100%;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  bottom: -1px;
}

.tab-lifted {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.tab-active {
  border-color: var(--border-color);
  border-bottom-color: var(--background-color);
  background-color: var(--background-color);
}

/* New Project Card Styling */
.create-project-card {
  width: 100%;
  height: 8rem; /* h-32 */
  border-radius: 0.375rem; /* rounded-md */
  margin-bottom: 0.5rem; /* mb-2 */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg-color); /* bg-gray-200 equivalent, but using theme variable */
  border: 1px solid var(--border-color); /* Added for consistency with other cards */
}

.create-project-icon {
  font-size: 3rem; /* text-5xl */
  color: var(--text-color-light); /* text-gray-500 equivalent, but using theme variable */
}

#modal-backdrop {
  z-index: 1040; /* Ensure it's above other content */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#modal-backdrop:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background-color: var(--card-bg-color);
  padding: 1.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  width: 90%;
  max-width: 500px;
  max-height: 90vh; /* Limit height to prevent overflow on smaller screens */
  overflow-y: auto; /* Enable scrolling if content exceeds max-height */
  position: relative; /* Needed for absolute positioning of close button */
}

.modal-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.error-message {
  color: var(--error-color);
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem; /* Equivalent to mb-1 (4px) */
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-secondary {
  background-color: var(--header-bg-color); /* bg-gray-300 equivalent, using theme */
  color: var(--text-color); /* text-gray-800 equivalent, using theme */
  padding: 0.5rem 1rem; /* px-4 py-2 */
  border-radius: 0.25rem; /* rounded-md */
  margin-right: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--border-color); /* Slightly darker on hover */
}

.close-modal-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color-light);
  cursor: pointer;
  z-index: 10; /* Ensure it's above modal content */
}

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

@media (max-width: 768px) {
  .modal-dialog {
    width: 95%;
    margin: 1rem;
  }
}

/* Spinner Animation */
@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
  margin-left: 10px;
}

.edit-icon {
  color: var(--text-color-light);
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

h1.group:hover .edit-icon {
  opacity: 1;
}

/* InfoTab Styles */
.detail-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.detail-label {
  min-width: 120px; /* Adjust as needed for alignment */
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: var(--text-color-light);
  /* Removed margin-bottom as it's now a flex item */
}

.detail-value {
  flex-grow: 1; /* Allow value to take remaining space */
  font-size: 1rem;
  color: var(--text-color);
  padding: 0.5rem 0.75rem; /* Consistent padding */
  border: 1px solid var(--border-color); /* Add border for visual separation */
  border-radius: 4px;
  background-color: var(--card-bg-color); /* Use card background for consistency */
}

.manifest-download-container,
.feed-url-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-grow: 1; /* Allow container to take remaining space */
}

.feed-input {
  flex-grow: 1;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--card-bg-color);
  color: var(--text-color);
}

.copy-button {
  /* Uses existing .btn .btn-primary styles */
  flex-shrink: 0;
}

/* EditSetupTab Styles */
.edit-setup-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.setup-edit-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.setup-edit-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.setup-edit-subtitle {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.detail-item-edit {
  margin-bottom: 1rem;
}

.detail-label-edit {
  display: block;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: var(--text-color-light);
  margin-bottom: 0.25rem;
}

.edit-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--card-bg-color);
  color: var(--text-color);
}

.edit-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.setup-edit-table thead th {
  background-color: var(--header-bg-color);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.setup-edit-table tbody td {
  padding: 1rem 1.5rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.setup-edit-table tbody tr:last-child td {
  border-bottom: none;
}

.setup-edit-table tbody tr:hover {
  background-color: var(--header-bg-color); /* Slightly lighter background on hover */
}

/* InfoTab Creatives Section Styles */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

/* Creative Actions */
.creative-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.creative-action-icon {
  font-size: 1.1em;
  color: var(--text-color-light);
  cursor: pointer;
  transition: color 0.2s ease-in-out;
  text-decoration: none; /* Remove underline from links */
  background: none;
  border: none;
  padding: 0;
}

.creative-action-icon:hover {
  color: var(--primary-color);
}

.creative-action-icon.delete-icon:hover {
  color: var(--error-color);
}

/* Creative Card Layout (Modified) */
.creative-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-color);
  padding: 1rem;
  position: relative;
  min-height: 120px;
}

.creative-card-main-info {
  flex-grow: 1;
  margin-bottom: 0.5rem;
}

.creative-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.creative-card .creative-size {
  margin: 0;
  color: var(--text-color-light);
  font-size: 0.85rem;
}

.creative-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto; /* Push footer to bottom */
}

.creative-card .creative-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.master-size-toggle.filled {
  color: var(--primary-color);
}

.master-size-toggle.outline {
  color: var(--text-color-light);
}

.creative-enabled-switch {
  /* Uses existing .switch styles */
}

/* Ensure the master size icon is aligned with other action icons */
.creative-master-size .master-size-icon {
  margin-left: 0;
}

/* Creative Upload Modal Styles */
.creative-upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creative-upload-modal-dialog {
  background-color: var(--card-bg-color);
  padding: 20px;
  border-radius: 8px;
  width: 600px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px var(--shadow-color);
  position: relative;
}

.creative-upload-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.creative-upload-modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: var(--text-color);
}

.creative-upload-modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text-color);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creative-upload-modal-close:hover {
  color: var(--primary-color);
}

.folder-upload-area {
  border: 2px dashed var(--border-color);
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: var(--header-bg-color);
  transition: border-color 0.2s ease;
}

.folder-upload-area:hover {
  border-color: var(--primary-color);
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.dimensions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.flex-1 {
  flex: 1;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray-500 {
  color: #6b7280; /* A medium gray */
}

.selected-files-container {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
}

.selected-files-container.hidden {
  display: none;
}

.dimension-fields-container.hidden {
  display: none;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--card-bg-color);
  color: var(--text-color);
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-secondary {
  background-color: var(--header-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn:hover {
  opacity: 0.9;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Additional classes for creative upload modal */
.folder-icon {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.absolute-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.files-list {
  margin: 5px 0;
  padding-left: 20px;
}

/* Profile Dropdown Styles */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--error-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-color);
  z-index: 1000;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  width: max-content;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%; /* Full width to match dropdown width */
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background-color: var(--header-bg-color);
}

.dropdown-item i {
  width: 20px;
  margin-right: 0.5rem;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
}

.logout-btn {
  color: var(--error-color) !important;
  font-weight: 500;
}

.notification-count {
  background-color: var(--error-color);
  color: white;
  border-radius: 10px;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  margin-left: auto; /* Push to the right in a flex container */
  flex-shrink: 0; /* Prevent it from shrinking */
}

/* Mobile Profile Section */
.mobile-profile-section {
  width: 100%;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-profile-header {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.mobile-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  object-fit: cover;
}

.mobile-username {
  font-weight: 500;
  color: var(--text-color);
}

/* Theme Controls in Dropdown */
.theme-controls-dropdown {
  background-color: var(--header-bg-color);
  border-radius: 4px;
  margin: 0.5rem 0;
  width: 100%; /* Full width inside dropdown */
}

.theme-selector-container label,
.theme-mode-container label {
  color: var(--text-color);
  display: block; /* Full width labels */
}

.theme-selector-container select {
  background-color: var(--card-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  width: 100%;
}

body .theme-mode-container .theme-mode-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Remove theme-switcher-container styles, rely on global .switch */
.theme-switcher-container {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.theme-switcher-container input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switcher-container .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.theme-switcher-container .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.theme-switcher-container input:checked + .slider {
  background-color: var(--primary-color);
}

.theme-switcher-container input:checked + .slider:before {
  transform: translateX(26px);
}

.theme-controls-mobile .theme-switcher-container-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* New class to make an element flex-grow */
.flex-grow-1 {
  flex-grow: 1;
}

/* How It Works Contact Info */
.contact-info-section {
  margin-top: 2rem;
  text-align: center;
}

.contact-info-section p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  font-size: 2.5rem;
  color: var(--text-color-light);
  transition: color 0.3s ease-in-out;
}

.social-link:hover {
  color: var(--primary-color);
}
