/* ===== COMPONENT STYLES ===== */

/* ===== PANDIT CARD COMPONENTS ===== */
.pandit-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.pandit-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pandit-card-content {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pandit-image {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.pandit-details {
    flex: 1;
}

.pandit-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827; /* gray-900 */
}

.pandit-location {
    color: #6b7280; /* gray-600 */
    font-weight: 500;
    font-size: 0.875rem;
}

.pandit-rating {
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.pandit-stars {
    display: flex;
    align-items: center;
    color: #fbbf24; /* yellow-400 */
}

.pandit-reviews {
    color: #6b7280; /* gray-500 */
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.pandit-stats {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #374151; /* gray-700 */
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.pandit-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.specialty-tag {
    background-color: #fed7aa; /* orange-100 */
    color: #9a3412; /* orange-800 */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.pandit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.pandit-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937; /* gray-800 */
}

.pandit-price-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280; /* gray-600 */
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #ea580c; /* orange-600 */
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: #c2410c; /* orange-700 */
}

.btn-secondary {
    background-color: #f97316; /* orange-500 */
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #ea580c; /* orange-600 */
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-full {
    width: 100%;
}

/* ===== FORM COMPONENTS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin-bottom: 0.25rem;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #ea580c; /* orange-600 */
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    appearance: none;
}

.form-select:focus {
    outline: none;
    border-color: #ea580c; /* orange-600 */
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    resize: vertical;
    min-height: 5rem;
}

.form-textarea:focus {
    outline: none;
    border-color: #ea580c; /* orange-600 */
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* ===== FILTER COMPONENTS ===== */
.filter-container {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937; /* gray-800 */
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { /* sm */
    .filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) { /* lg */
    .filter-grid { grid-template-columns: 1fr 1fr auto; }
}

/* Pandit list responsive grid */
#pandit-list-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { /* sm */
    #pandit-list-container { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) { /* lg */
    #pandit-list-container { grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
}

/* ===== LOADING COMPONENTS ===== */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10rem;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb; /* gray-200 */
    border-top: 4px solid #f97316; /* orange-500 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-left: 1rem;
    color: #ea580c; /* orange-600 */
    font-weight: 500;
}

/* ===== ERROR COMPONENTS ===== */
.error-message {
    color: #dc2626; /* red-600 */
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

.no-results {
    text-align: center;
    color: #6b7280; /* gray-500 */
    padding: 2rem 1rem;
}

/* ===== ADMIN TABLE COMPONENTS ===== */
.admin-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background-color: white;
    font-size: 0.875rem;
}

.admin-table thead {
    background-color: #f3f4f6; /* gray-100 */
}

.admin-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151; /* gray-700 */
    border-bottom: 2px solid #e5e7eb; /* gray-200 */
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    color: #374151; /* gray-700 */
    max-width: 200px;
    word-wrap: break-word;
    white-space: normal;
}

.admin-table td.status-cell {
    white-space: nowrap;
    min-width: 120px;
    max-width: none;
}

.admin-table tbody tr:hover {
    background-color: #f9fafb; /* gray-50 */
}

.btn-view-details {
    padding: 0.375rem 0.75rem;
    background-color: #ea580c; /* orange-600 */
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-view-details:hover {
    background-color: #c2410c; /* orange-700 */
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
}

.status-pending-review {
    background-color: #fef3c7; /* yellow-100 */
    color: #92400e; /* yellow-800 */
}

.status-approved {
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
}

.status-rejected {
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
}

/* ===== TAB COMPONENTS ===== */
.tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280; /* gray-500 */
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button:hover {
    color: #ea580c; /* orange-600 */
}

.tab-button.active {
    color: #ea580c; /* orange-600 */
    border-bottom-color: #ea580c; /* orange-600 */
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== BOOKING STATUS BADGES ===== */
.status-pending {
    background-color: #fef3c7; /* yellow-100 */
    color: #92400e; /* yellow-800 */
}

.status-confirmed {
    background-color: #dbeafe; /* blue-100 */
    color: #1e40af; /* blue-800 */
}

.status-cancelled {
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
}

.status-completed {
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
}

/* ===== BOOKING ACTION BUTTONS ===== */
.btn-booking-action {
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-booking-view {
    background-color: #ea580c; /* orange-600 */
    color: white;
}

.btn-booking-view:hover {
    background-color: #c2410c; /* orange-700 */
}

.btn-booking-confirm {
    background-color: #10b981; /* green-500 */
    color: white;
}

.btn-booking-confirm:hover {
    background-color: #059669; /* green-600 */
}

.btn-booking-cancel {
    background-color: #ef4444; /* red-500 */
    color: white;
}

.btn-booking-cancel:hover {
    background-color: #dc2626; /* red-600 */
}

.btn-booking-complete {
    background-color: #3b82f6; /* blue-500 */
    color: white;
}

.btn-booking-complete:hover {
    background-color: #2563eb; /* blue-600 */
}
