:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 0.375rem;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  body {
    background-color: #f9fafb;
    color: var(--text-color);
    line-height: 1.5;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  /* Header */
  header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 0;
  }

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

  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
    position: relative;
    display: none;
  }

  @media (min-width: 768px) {
    .search-bar {
      display: block;
    }
  }

  .search-bar input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
  }

  .search-bar i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
  }

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

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

  .btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
  }

  .btn-outline:hover {
    background-color: var(--secondary-color);
  }

  .btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
  }

  .avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
  }

  .mobile-menu-btn {
    display: block;
  }

  @media (min-width: 768px) {
    .mobile-menu-btn {
      display: none;
    }
  }

  .mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu .search-bar {
    display: block;
    margin-bottom: 1rem;
  }

  .mobile-menu .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Main content */
  .main-content {
    padding: 2rem 0;
  }

  .page-title {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .page-title h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  .page-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
  }

  /* Board controls */
  .board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background-color: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
  }

  .tag:hover {
    background-color: var(--secondary-color);
  }

  .view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .view-toggle button {
    padding: 0.25rem 0.5rem;
    background-color: white;
    border: none;
    cursor: pointer;
  }

  .view-toggle button.active {
    background-color: var(--secondary-color);
  }

  /* Board layout */
  .board-view {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: calc(100vh - 300px);
  }

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

  .grid-view.active {
    display: grid;
  }

  .board-view.hidden {
    display: none;
  }

  .column {
    min-width: 280px;
    background-color: #f3f4f6;
    border-radius: var(--radius);
    padding: 1rem;
  }

  .column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  .column-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .column-title .edit-icon {
    opacity: 0.5;
    cursor: pointer;
    font-size: 0.75rem;
  }

  .column-title .edit-icon:hover {
    opacity: 1;
  }

  .column-title-input {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    width: 150px;
  }

  .column-actions {
    display: flex;
    gap: 0.5rem;
  }

  .column-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
  }

  .column-actions button:hover {
    color: var(--text-color);
  }

  .column-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 50px;
  }

  .add-column-btn {
    min-width: 280px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
  }

  .add-column-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
  }

  .add-column-form {
    min-width: 280px;
    background-color: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .add-column-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
  }

  .form-actions {
    display: flex;
    gap: 0.5rem;
  }

  /* Service card */
  .service-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: grab;
    transition: all 0.2s;
  }

  .service-card:hover {
    box-shadow: var(--shadow-hover);
  }

  .service-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
  }

  .card-img {
    position: relative;
    height: 120px;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
  }

  .card-category {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
  }

  .card-content {
    padding: 0.75rem;
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
  }

  .card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .card-rating i {
    color: #f59e0b;
  }

  .card-reviews {
    color: var(--text-muted);
  }

  .card-price {
    font-weight: 600;
    color: #10b981;
  }

  .card-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
  }

  .card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
  }

  .card-provider {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
  }

  .provider-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
  }

  .card-actions {
    display: flex;
    gap: 0.25rem;
  }

  .card-action-btn {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
  }

  .card-action-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
  }

  /* Grid view card */
  .grid-card {
    position: relative;
  }

  .grid-card .card-category {
    top: 0.5rem;
    left: 0.5rem;
    right: auto;
  }

  .grid-card .service-card {
    height: 100%;
  }

  .column-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 500;
    color: white;
  }

  /* Modal */
  .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .modal-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .modal {
    background-color: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s;
  }

  .modal-backdrop.active .modal {
    transform: scale(1);
  }

  .modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
  }

  .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  .modal-description {
    color: var(--text-muted);
    font-size: 0.875rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
  }

  /* Form */
  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
  }

  .form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
  }

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

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

  .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: white;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  @media (min-width: 640px) {
    .form-row {
      grid-template-columns: 1fr 1fr;
    }
  }

  .file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
  }

  .file-upload:hover {
    background-color: var(--secondary-color);
  }

  .file-upload i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
  }

  .file-upload p {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
  }

  .file-upload .small {
    font-size: 0.75rem;
  }

  /* Utilities */
  .hidden {
    display: none;
  }

  /* Colors for columns */
  .bg-pink-100 {
    background-color: #fce7f3;
  }

  .bg-blue-100 {
    background-color: #dbeafe;
  }

  .bg-green-100 {
    background-color: #d1fae5;
  }

  .bg-purple-100 {
    background-color: #ede9fe;
  }

  .bg-yellow-100 {
    background-color: #fef3c7;
  }

  .bg-orange-100 {
    background-color: #ffedd5;
  }

  .bg-teal-100 {
    background-color: #ccfbf1;
  }

  /* Tags for grid view */
  .tag-pink {
    background-color: #ec4899;
  }

  .tag-blue {
    background-color: #3b82f6;
  }

  .tag-green {
    background-color: #10b981;
  }

  .tag-purple {
    background-color: #8b5cf6;
  }

  .tag-yellow {
    background-color: #f59e0b;
  }

  .tag-orange {
    background-color: #f97316;
  }

  .tag-teal {
    background-color: #14b8a6;
  }