/* TailsTap Custom Styles */

/* Root Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #495057;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border-width: 1px;
}

.btn:hover {
    transform: translateY(-1px);
}

.card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

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

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

/* Service Cards */
.service-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Vendor Dashboard */
.vendor-dashboard .dashboard-stat {
    border-radius: 12px;
    padding: 2rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    position: relative;
    overflow: hidden;
}

.vendor-dashboard .dashboard-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.vendor-dashboard .dashboard-stat:hover::before {
    transform: scale(1.2);
}

/* Booking Flow */
.booking-step {
    position: relative;
    z-index: 1;
}

.booking-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 2rem;
    height: 2px;
    background: #dee2e6;
    transform: translateY(-50%);
    z-index: -1;
}

.booking-step:last-child::before {
    display: none;
}

.booking-step.completed::before {
    background: var(--success-color);
}

.vendor-card {
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.vendor-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.vendor-card.selected {
    border-color: var(--success-color);
    background-color: #f8fff9;
}

.time-slot {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.time-slot:hover:not(.unavailable) {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
}

.time-slot.selected {
    border-color: var(--success-color);
    background-color: var(--success-color);
    color: white;
}

.time-slot.unavailable {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Admin Dashboard */
.admin-dashboard .admin-sidebar {
    background: linear-gradient(180deg, #1f2937 0%, #374151 100%);
    min-height: 100vh;
}

.admin-dashboard .metric-card {
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    transition: var(--transition);
}

.admin-dashboard .metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d1fae5;
    color: #059669;
}

.status-completed {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
}

.rating-stars .fa-star {
    margin-right: 2px;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Table Enhancements */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.04);
}

/* Modal Enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    border-bottom: none;
}

/* Alert Enhancements */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-primary {
    background-color: #e7f3ff;
    color: #004085;
}

.alert-success {
    background-color: #d1fae5;
    color: #047857;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .vendor-card {
        margin-bottom: 1.5rem;
    }
    
    .booking-step::before {
        display: none;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.rounded-lg {
    border-radius: 12px !important;
}

.rounded-xl {
    border-radius: 16px !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ─── M9: Identity Verification ─── */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: #d1fae5;
    color: #059669;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.verified-badge i {
    font-size: 0.75rem;
}

/* M5: Approval workflow status badges */
.status-requested {
    background: #fff3cd;
    color: #856404;
}
.status-declined {
    background: #f8d7da;
    color: #721c24;
}
.status-expired {
    background: #e2e3e5;
    color: #6c757d;
}

/* ─── M2: Notification System ─── */
.notification-dropdown {
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.notification-dropdown-item {
    white-space: normal;
    border-bottom: 1px solid #f0f0f0;
}

.notification-dropdown-item:last-child {
    border-bottom: none;
}

.notification-dropdown-item:hover {
    background-color: #f8f4ff;
}

.notification-unread {
    background-color: #f8f4ff;
    border-left: 3px solid var(--primary-color, #9D67EF);
}

.notification-badge {
    font-size: 0.6rem !important;
    min-width: 1.1rem;
    height: 1.1rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
}

.notification-bell .fa-bell {
    font-size: 1.1rem;
}

/* ─── M1: Reviews & Ratings ─── */
.star-select {
    gap: 0.25rem;
}

.star-label {
    cursor: pointer;
    font-size: 1.75rem;
    color: #dee2e6;
    transition: color 0.15s ease;
}

.star-radio:checked ~ .star-label {
    color: #ffc107;
}

.star-label:hover,
.star-label:hover ~ .star-label {
    color: #ffc107;
}

.review-card .rating-stars {
    color: #ffc107;
    font-size: 0.85rem;
}

.review-card .vendor-response {
    border-left: 3px solid var(--primary-color, #9D67EF);
}

.rating-summary .display-5 {
    color: var(--primary-color, #9D67EF);
}

.rating-bar {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: #ffc107;
    transition: width 0.3s ease;
}

/* ─── M6: Stripe Connect ─── */
.stripe-banner {
    border-left: 4px solid #635bff;
    background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
}

.stripe-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.stripe-status-active {
    background-color: #d4edda;
    color: #155724;
}

.stripe-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.stripe-status-restricted {
    background-color: #d1ecf1;
    color: #0c5460;
}

.stripe-status-disabled {
    background-color: #f8d7da;
    color: #721c24;
}

/* ─── M10: Meet & Greet ─── */
.mg-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem 0;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 2rem;
}

.mg-info-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.mg-detail {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.mg-detail:last-child {
    border-bottom: none;
}

.mg-detail i {
    width: 2rem;
    color: var(--primary-color);
}

.mg-price-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
}

/* --- M11: Dispute Resolution --- */
.dispute-card {
    border-left: 3px solid transparent;
    transition: border-color 0.2s;
}

.dispute-card.dispute-open { border-left-color: #dc3545; }
.dispute-card.dispute-under-review { border-left-color: #ffc107; }
.dispute-card.dispute-awaiting-response { border-left-color: #0dcaf0; }
.dispute-card.dispute-resolved { border-left-color: #198754; }
.dispute-card.dispute-closed { border-left-color: #6c757d; }

.dispute-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.dispute-message-customer {
    background-color: #f8f4ff;
    border-left: 3px solid #9D67EF;
}

.dispute-message-vendor {
    background-color: #f0f9ff;
    border-left: 3px solid #0d6efd;
}

.dispute-message-admin {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
}

.dispute-message-internal {
    background-color: #f8f9fa;
    border-left: 3px dashed #6c757d;
    font-style: italic;
}

.dispute-resolution-card {
    border: 2px solid #198754;
    border-radius: 0.75rem;
}

.dispute-stats .stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}