/* Service Page Styles */

/* Page Header Card */
.page-header-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}

.page-header-card.service-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.4);
}

.page-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.page-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.page-header-text {
    color: white;
}

.page-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.page-header-stats {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 60px;
}

.page-header-stat .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.page-header-stat .stat-number.pending {
    color: #fde68a;
}

.page-header-stat .stat-number.progress {
    color: #93c5fd;
}

.page-header-stat .stat-number.completed {
    color: #86efac;
}

.page-header-stat .stat-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.page-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #0284c7;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .page-header-card {
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .page-header-stats {
        justify-content: center;
    }
    
    .page-header-btn {
        width: 100%;
        justify-content: center;
    }
}

.service-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.dark .service-title {
    color: #f1f5f9;
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.dark .filter-section {
    background: #1e293b;
    border-color: #334155;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Service Form */
.service-form {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.dark .service-form {
    background: #1e293b;
    border-color: #334155;
}

.form-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.dark .form-title {
    color: #f1f5f9;
    border-color: #334155;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.dark .form-label {
    color: #e5e7eb;
}

.form-label .required {
    color: #ef4444;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.dark .form-actions {
    border-color: #334155;
}

/* Service List */
.service-list {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .service-list {
    background: #1e293b;
    border-color: #334155;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.dark .list-header {
    border-color: #334155;
}

/* Enhanced Table Styles */
.service-list .table-container {
    border: none;
    border-radius: 0;
}

.service-list .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.service-list .table thead {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.dark .service-list .table thead {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

.service-list .table th {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.dark .service-list .table th {
    color: #94a3b8;
    border-color: #334155;
}

.service-list .table tbody tr {
    transition: all 0.15s ease;
}

.service-list .table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.dark .service-list .table tbody tr:nth-child(even) {
    background: #0f172a40;
}

.service-list .table tbody tr:hover {
    background: #f0f9ff;
}

.dark .service-list .table tbody tr:hover {
    background: #1e3a5f;
}

.service-list .table td {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.dark .service-list .table td {
    color: #cbd5e1;
    border-color: #334155;
}

.service-list .table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Cell Styles */
.service-list .table td.font-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #0ea5e9;
    font-weight: 500;
}

.service-list .table td.font-medium {
    font-weight: 600;
    color: #1e293b;
}

.dark .service-list .table td.font-medium {
    color: #f1f5f9;
}

/* Service Card (Mobile) */
.service-card {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.dark .service-card {
    border-color: #334155;
}

.service-card:hover {
    background: #f8fafc;
}

.dark .service-card:hover {
    background: #334155;
}

.service-card:last-child {
    border-bottom: none;
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.service-card-title {
    font-weight: 600;
    color: #1e293b;
}

.dark .service-card-title {
    color: #f1f5f9;
}

.service-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.service-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.action-btn.view {
    background: #eff6ff;
    color: #3b82f6;
    border-color: #bfdbfe;
}

.action-btn.view:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.action-btn.edit {
    background: #fffbeb;
    color: #f59e0b;
    border-color: #fde68a;
}

.action-btn.edit:hover {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.action-btn.delete {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.action-btn.delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Action Button Tooltip */
.action-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 0.625rem;
    background: #1e293b;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.action-btn::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.action-btn:hover::after,
.action-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* File Upload */
.file-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .file-upload {
    border-color: #475569;
}

.file-upload:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.dark .file-upload:hover {
    background: #1e3a5f;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #94a3b8;
}

.file-upload-text {
    font-size: 0.875rem;
    color: #64748b;
}

.file-upload-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* ========================================
   Enhanced Service Form Modal
   ======================================== */

.service-form-modal {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* Form Header */
.service-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    border-radius: 1rem 1rem 0 0;
    position: relative;
    overflow: hidden;
}

.service-form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.service-form-header.edit-mode {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.service-form-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    flex-shrink: 0;
}

.service-form-header-text {
    flex: 1;
    min-width: 0;
}

.service-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-form-subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0.125rem 0 0 0;
}

.service-form-close {
    width: 36px;
    height: 36px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.service-form-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Progress Indicator */
.service-form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dark .service-form-progress {
    background: #1e293b;
    border-color: #334155;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    transition: all 0.3s ease;
}

.progress-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.dark .progress-step-icon {
    background: #334155;
}

.progress-step.active {
    color: #0ea5e9;
}

.progress-step.active .progress-step-icon {
    background: #e0f2fe;
    color: #0ea5e9;
}

.dark .progress-step.active .progress-step-icon {
    background: #0c4a6e;
}

.progress-step.completed {
    color: #10b981;
}

.progress-step.completed .progress-step-icon {
    background: #10b981;
    color: white;
}

.progress-line {
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 1px;
}

.dark .progress-line {
    background: #334155;
}

/* Form Body */
.service-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* Form Section */
.form-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.dark .form-section {
    background: #1e293b;
    border-color: #334155;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dark .form-section-header {
    background: #0f172a;
    border-color: #334155;
}

.form-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-section-icon.schedule {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.dark .form-section-icon.schedule {
    background: linear-gradient(135deg, #1e3a5f, #1e40af);
    color: #60a5fa;
}

.form-section-icon.customer {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.dark .form-section-icon.customer {
    background: linear-gradient(135deg, #064e3b, #047857);
    color: #34d399;
}

.form-section-icon.location {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.dark .form-section-icon.location {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fbbf24;
}

.form-section-icon.status {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.dark .form-section-icon.status {
    background: linear-gradient(135deg, #4c1d95, #5b21b6);
    color: #a78bfa;
}

.form-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.dark .form-section-title {
    color: #f1f5f9;
}

.form-section-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.125rem 0 0 0;
}

.form-section-content {
    padding: 1.25rem;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Form Field */
.form-field {
    margin-bottom: 1rem;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.dark .form-field-label {
    color: #e5e7eb;
}

.required-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

/* Enhanced Input */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.input-enhanced {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.75rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    min-height: 48px;
}

.dark .input-enhanced {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.input-enhanced:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.input-enhanced::placeholder {
    color: #94a3b8;
}

/* Enhanced Select */
.select-enhanced-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-icon {
    position: absolute;
    left: 0.875rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.select-enhanced {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.dark .select-enhanced {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.select-enhanced:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.select-arrow {
    position: absolute;
    right: 0.875rem;
    color: #94a3b8;
    pointer-events: none;
}

/* Location Input */
.location-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.location-detect-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 48px;
}

.location-detect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.location-detect-btn:active {
    transform: translateY(0);
}

.form-field-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

/* Textarea */
.textarea-wrapper {
    position: relative;
}

.textarea-enhanced {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dark .textarea-enhanced {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.textarea-enhanced:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.textarea-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.375rem;
}

.char-count {
    font-size: 0.75rem;
    color: #94a3b8;
}

.char-count.warning {
    color: #f59e0b;
}

/* Status Selector */
.status-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.status-option {
    position: relative;
    cursor: pointer;
}

.status-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.status-option-content {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.dark .status-option-content {
    background: #0f172a;
    border-color: #334155;
}

.status-option-content span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.status-option.warning .status-option-content {
    color: #f59e0b;
}

.status-option.info .status-option-content {
    color: #3b82f6;
}

.status-option.success .status-option-content {
    color: #10b981;
}

.status-option.danger .status-option-content {
    color: #ef4444;
}

.status-option.selected .status-option-content,
.status-option:hover .status-option-content {
    border-color: currentColor;
    background: currentColor;
}

.status-option.selected .status-option-content span,
.status-option.selected .status-option-content svg,
.status-option:hover .status-option-content span,
.status-option:hover .status-option-content svg {
    color: white;
}

.status-option.warning.selected .status-option-content,
.status-option.warning:hover .status-option-content {
    background: #f59e0b;
    border-color: #f59e0b;
}

.status-option.info.selected .status-option-content,
.status-option.info:hover .status-option-content {
    background: #3b82f6;
    border-color: #3b82f6;
}

.status-option.success.selected .status-option-content,
.status-option.success:hover .status-option-content {
    background: #10b981;
    border-color: #10b981;
}

.status-option.danger.selected .status-option-content,
.status-option.danger:hover .status-option-content {
    background: #ef4444;
    border-color: #ef4444;
}

/* Form Footer */
.service-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 1rem 1rem;
}

.dark .service-form-footer {
    background: #0f172a;
    border-color: #334155;
}

.btn-cancel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .btn-cancel {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.btn-cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.dark .btn-cancel:hover {
    background: #334155;
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}


/* ========================================
   Mobile Responsive Enhancements
   ======================================== */

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .page-header-card {
        padding: 1rem;
    }
    
    .page-header-icon {
        width: 44px;
        height: 44px;
    }
    
    .page-header-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .page-header-title {
        font-size: 1.25rem;
    }
    
    .page-header-stats {
        gap: 0.375rem;
    }
    
    .page-header-stat {
        padding: 0.5rem 0.625rem;
        min-width: 50px;
    }
    
    .page-header-stat .stat-number {
        font-size: 1rem;
    }
    
    .page-header-stat .stat-label {
        font-size: 0.5625rem;
    }
    
    .filter-section {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .service-form {
        padding: 1rem;
    }
    
    .form-title {
        font-size: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-list {
        border-radius: 0.875rem;
    }
    
    .list-header {
        padding: 0.875rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .service-card {
        padding: 0.875rem;
    }
    
    .service-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-card-meta {
        gap: 0.75rem;
    }
    
    .service-card-actions {
        justify-content: flex-start;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .filter-section {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    /* Table scroll indicator */
    .table-responsive {
        position: relative;
    }
    
    .table-responsive::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, white);
        pointer-events: none;
        opacity: 0.8;
    }
    
    .dark .table-responsive::after {
        background: linear-gradient(to right, transparent, #1e293b);
    }
    
    /* Service Form Modal - Mobile */
    .service-form-modal {
        max-height: 100vh;
        height: 100%;
    }
    
    .service-form-header {
        padding: 1rem;
        border-radius: 0;
    }
    
    .service-form-header-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-form-title {
        font-size: 1.125rem;
    }
    
    .service-form-subtitle {
        font-size: 0.75rem;
    }
    
    .service-form-progress {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .progress-step {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .progress-step span {
        display: none;
    }
    
    .progress-step-icon {
        width: 28px;
        height: 28px;
    }
    
    .progress-line {
        width: 16px;
    }
    
    .service-form-body {
        padding: 0.75rem;
    }
    
    .form-section {
        margin-bottom: 0.75rem;
        border-radius: 0.875rem;
    }
    
    .form-section-header {
        padding: 0.875rem 1rem;
    }
    
    .form-section-icon {
        width: 36px;
        height: 36px;
    }
    
    .form-section-title {
        font-size: 0.875rem;
    }
    
    .form-section-desc {
        font-size: 0.6875rem;
    }
    
    .form-section-content {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-field {
        margin-bottom: 0.75rem;
    }
    
    .form-field-label {
        font-size: 0.8125rem;
    }
    
    .input-enhanced,
    .select-enhanced {
        font-size: 1rem;
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        min-height: 52px;
    }
    
    .textarea-enhanced {
        font-size: 1rem;
        min-height: 90px;
    }
    
    .location-input-wrapper {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    .location-detect-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
    
    .location-btn-text {
        display: inline;
    }
    
    .status-selector {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    .status-option-content {
        padding: 0.75rem 1rem;
    }
    
    .service-form-footer {
        padding: 0.875rem 1rem;
        flex-direction: column-reverse;
        gap: 0.625rem;
        border-radius: 0;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        min-height: 48px;
    }
}

/* Extra Small Mobile (< 360px) */
@media (max-width: 359px) {
    .service-form-header {
        gap: 0.75rem;
    }
    
    .service-form-header-icon {
        width: 36px;
        height: 36px;
    }
    
    .service-form-header-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .service-form-title {
        font-size: 1rem;
    }
    
    .form-section-header {
        gap: 0.625rem;
    }
    
    .form-section-icon {
        width: 32px;
        height: 32px;
    }
    
    .form-section-icon svg {
        width: 16px;
        height: 16px;
    }
}
