    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      background: #f8fafc;
      min-height: 100vh;
      color: #1e293b;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }

    .header {
      margin-bottom: 30px;
    }

    .header h1 {
      font-size: 1.5rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 4px;
    }

    .header p {
      color: #64748b;
      font-size: 0.9rem;
    }

    .section-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .expand-icon {
      cursor: pointer;
      font-size: 1.2rem;
      color: #64748b;
    }

    .filter-tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }

    .filter-tab {
      padding: 8px 16px;
      border: 1px solid #e2e8f0;
      border-radius: 20px;
      background: white;
      color: #64748b;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .filter-tab.active {
      background: #3b82f6;
      color: white;
      border-color: #3b82f6;
    }

    .filter-tab:hover:not(.active) {
      border-color: #cbd5e1;
    }

    .inventory-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
    }

    .inventory-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      border: 1px solid #e2e8f0;
      transition: all 0.2s;
      position: relative;
    }

    .inventory-card:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Added styles for the main card images */
    .card-main-image {
        width: 100%;
        height: 150px; /* Adjust height as needed */
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .card-header {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 15px;
    }

    .card-image {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      object-fit: cover;
    }

    .card-info {
        position: relative;
    }

    .card-title {
      font-size: 1rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 4px;
    }

    .card-subtitle {
      font-size: 0.85rem;
      color: #64748b;
      margin-bottom: 8px;
    }

    .card-dimensions {
      font-size: 0.8rem;
      color: #64748b;
      margin-bottom: 4px;
    }

    .card-reach {
      font-size: 0.8rem;
      color: #64748b;
    }


    .card-checkbox {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 18px;
      height: 18px;
      cursor: pointer;
      z-index: 10;
    }

.status-badge {
  position: absolute;
  top: 16px;
  right: 45px;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  background: #fef2f2;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 10px;
  z-index: 5;
}
    .status-out-of-budget {
      background: #fef2f2;
      color: #dc2626;
    }

    .card-details {
      margin: 15px 0;
    }

    .detail-row {
      display: flex;
      gap: 20px;
      margin-bottom: 8px;
    }

    .detail-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .detail-label {
      font-size: 0.75rem;
      color: #64748b;
      font-weight: 500;
    }

    .detail-value {
      font-size: 0.85rem;
      color: #1e293b;
      font-weight: 600;
    }

    .card-formats {
      margin: 15px 0;
    }

    .format-options {
      display: flex;
      gap: 8px;
      margin-top: 8px;
    }

    .format-option {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 0.8rem;
      color: #64748b;
    }

    .format-checkbox {
      width: 14px;
      height: 14px;
    }

.card-budget {
  display: flex;
  flex-wrap: wrap; 
  gap: 10px;
  align-items: center;
  margin: 15px 0;
}

.budget-input {
  width: 120px; /* fixed smaller width */
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
}

    .budget-total {
      font-weight: 600;
      color: #1e293b;
      font-size: 0.9rem;
    }

    .card-actions {
      display: flex;
      gap: 8px;
      margin-top: 15px;
    }

    .btn {
      padding: 8px 16px;
      border-radius: 6px;
      border: none;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 500;
      transition: all 0.2s;
    }

    .btn-primary {
      background: #3b82f6;
      color: white;
    }

    .btn-primary:hover {
      background: #2563eb;
    }

    .btn-secondary {
      background: #f59e0b;
      color: white;
    }

    .btn-secondary:hover {
      background: #d97706;
    }

    .icon-btn {
      width: 32px;
      height: 32px;
      border: 1px solid #e2e8f0;
      background: white;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      transition: all 0.2s;
    }

    .icon-btn:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
    }

    .ai-assistant {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      border: 1px solid #e2e8f0;
      margin-top: 20px;
    }

    .ai-message {
      font-size: 0.9rem;
      color: #374151;
      line-height: 1.5;
      margin-bottom: 15px;
    }

    .ai-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .ai-btn {
      padding: 8px 16px;
      border: 1px solid #e2e8f0;
      background: white;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.85rem;
      color: #3b82f6;
      transition: all 0.2s;
    }

    .ai-btn:hover {
      background: #f8fafc;
      border-color: #3b82f6;
    }

    .chat-input {
      display: flex;
      gap: 10px;
      margin-top: 15px;
    }

    .chat-input input {
      flex: 1;
      padding: 10px 15px;
      border: 1px solid #e2e8f0;
      border-radius: 20px;
      font-size: 0.9rem;
      background: #f8fafc;
    }

    .chat-input button {
      width: 40px;
      height: 40px;
      border: none;
      background: #3b82f6;
      color: white;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1rem;
      transition: all 0.2s;
    }

    .chat-input button:hover {
      background: #2563eb;
    }

    @media (max-width: 768px) {
      .inventory-grid {
        grid-template-columns: 1fr;
      }
      
      .filter-tabs {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .card-metrics {
        flex-direction: column;
        gap: 10px;
      }
    }
  