/* styles.css */
body {
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
    background-color: #f9fafb; /* Match dashboard background */
}

h1 {
    font-size: 16px;
    margin-top: 0;
}

p {
    color: rgb(107, 114, 128);
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.card {
    max-width: 620px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid lightgray;
    border-radius: 16px;
}

.card p:last-child {
    margin-bottom: 0;
}

/* New styles for My Services */
.my-services-container {
    padding: 1rem;
}

.service-card {
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tab-button {
    transition: all 0.2s ease;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    color: #f97316;
    border-bottom-color: #f97316;
}

.action-btn {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.delete-btn {
    color: #dc2626;
    border-color: #fca5a5;
}

.delete-btn:hover {
    background-color: #fef2f2;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    display: inline-block;
}

/* Status colors */
.bg-green-100 { background-color: #dcfce7; }
.text-green-800 { color: #166534; }
.bg-yellow-100 { background-color: #fef9c3; }
.text-yellow-800 { color: #854d0e; }
.bg-gray-100 { background-color: #f3f4f6; }
.text-gray-800 { color: #1f2937; }

/* Notification styles */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.notification.success {
    background-color: #dcfce7;
    color: #166534;
}

.notification.error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.delete-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-btn {
    background: white;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.delete-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}

.delete-btn i {
    margin-right: 6px;
    font-size: 14px;
}

/* ===== INVOICE VIEW TOGGLE STYLES ===== */
.toggle-view-container {
    background-color: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
}

.toggle-view {
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #6b7280;
    border: none;
    background: transparent;
}

.toggle-view.active {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #3b82f6;
}

.invoice-view {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.invoice-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Invoice table styles */
.invoice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.invoice-table th {
    background-color: #f9fafb;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: white;
}

.invoice-table tr:hover td {
    background-color: #f9fafb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toggle-view {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .invoice-table th, 
    .invoice-table td {
        padding: 0.75rem;
    }
}
.hide-scrollbar {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE 10+ */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari */
}
.category-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.subcategory-item {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.subcategory-item:hover {
  background-color: #fb923c;
  color: #fff;
}
