/* QuickFix - Installer Booking System */

/* Minimal & Clean Design - Inspired by Gett */



@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



:root {

    --primary-color: #006CCC;

    --primary-hover: #0055A3;

    --danger-color: #FF1823;

    --danger-hover: #CC1319;

    --success-color: #00C853;

    --warning-color: #FFA726;

    --bg-light: #F5F7FA;

    --bg-white: #FFFFFF;

    --text-primary: #000000;

    --text-secondary: #374151;

    --border-color: #E5E7EB;

    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);

    --border-radius: 12px;

    --border-radius-lg: 16px;

    --border-radius-sm: 8px;

}



body {

    font-family: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

    direction: rtl;

    background-color: var(--bg-light);

    color: var(--text-primary);

    line-height: 1.6;

}



/* Container */

.container {

    max-width: 480px;

    margin: 0 auto;

    background-color: var(--bg-white);

    min-height: 100vh;

    position: relative;

    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);

}



/* Header */

.header {

    background-color: var(--bg-white);

    padding: 16px 20px;

    border-bottom: 1px solid var(--border-color);

    position: sticky;

    top: 0;

    z-index: 100;

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.header h1 {

    font-size: 24px;

    font-weight: 700;

}



.back-btn {

    background: none;

    border: none;

    font-size: 24px;

    cursor: pointer;

    padding: 4px;

}



/* Map Placeholder */

.map-container {

    width: 100%;

    height: 300px;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    position: relative;

    overflow: hidden;

}



.map-container.full-height {

    height: 50vh;

}



.map-pin {

    position: absolute;

    width: 40px;

    height: 40px;

    background-color: var(--danger-color);

    border-radius: 50% 50% 50% 0;

    transform: rotate(-45deg);

    border: 3px solid white;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

}



.map-pin::after {

    content: '';

    position: absolute;

    width: 12px;

    height: 12px;

    background-color: white;

    border-radius: 50%;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

}



/* Urgency Pins */

.map-pin.normal {

    background-color: var(--text-secondary);

}



.map-pin.urgent {

    background-color: var(--warning-color);

}



.map-pin.critical {

    background-color: var(--danger-color);

}



/* Pin Category Icon */

.pin-category-icon {

    position: absolute;

    top: -8px;

    right: -8px;

    width: 24px;

    height: 24px;

    background-color: white;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);

    z-index: 10;

}



/* Content Sections */

.content {

    padding: 20px;

}



.section {

    margin-bottom: 24px;

}



.section-title {

    font-size: 14px;

    font-weight: 600;

    color: var(--text-secondary);

    margin-bottom: 12px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



/* Form Elements */

.input-group {

    margin-bottom: 16px;

}



.input-group label {

    display: block;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 8px;

    color: var(--text-primary);

}



.input-field {

    width: 100%;

    padding: 14px 16px;

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius);

    font-size: 16px;

    font-family: inherit;

    direction: rtl;

    background-color: var(--bg-white);

    transition: all 0.2s;

}



.input-field:focus {

    outline: none;

    border-color: var(--primary-color);

    box-shadow: 0 0 0 4px rgba(0, 108, 204, 0.1);

}



textarea.input-field {

    resize: vertical;

    min-height: 100px;

}



/* Category Buttons */

.category-btn {

    min-width: 140px;

    padding: 16px 12px;

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius);

    background-color: var(--bg-white);

    cursor: pointer;

    text-align: center;

    transition: all 0.2s;

    flex-shrink: 0;

}



.category-btn:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow);

    border-color: var(--primary-color);

}



.category-btn.selected {

    background-color: var(--primary-color);

    border-color: var(--primary-color);

    box-shadow: 0 4px 12px rgba(0, 108, 204, 0.3);

}



.category-icon {

    font-size: 32px;

    display: block;

    margin-bottom: 8px;

}



.category-btn.selected .category-icon {

    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));

}



.category-label {

    font-size: 13px;

    font-weight: 600;

    color: var(--text-primary);

    line-height: 1.3;

}



.category-btn.selected .category-label {

    color: white;

}



/* Upload Area */

.upload-area {

    border: 2px dashed var(--border-color);

    border-radius: var(--border-radius);

    padding: 32px 20px;

    text-align: center;

    cursor: pointer;

    transition: all 0.2s;

    background-color: var(--bg-light);

}



.upload-area:hover {

    border-color: var(--primary-color);

    background-color: rgba(0, 108, 204, 0.05);

}



.upload-icon {

    font-size: 48px;

    margin-bottom: 12px;

}



.upload-text {

    font-size: 16px;

    font-weight: 600;

    color: var(--text-primary);

    margin-bottom: 4px;

}



.upload-subtext {

    font-size: 13px;

    color: var(--text-secondary);

}



/* Filter Category Buttons (for installer map) */

.filter-category-btn {

    min-width: 110px;

    padding: 10px 12px;

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius-sm);

    background-color: var(--bg-white);

    cursor: pointer;

    text-align: center;

    transition: all 0.2s;

    flex-shrink: 0;

}



.filter-category-btn:hover {

    border-color: var(--primary-color);

    background-color: rgba(0, 108, 204, 0.05);

}



.filter-category-btn.selected {

    background-color: var(--primary-color);

    border-color: var(--primary-color);

    box-shadow: 0 2px 8px rgba(0, 108, 204, 0.3);

}



.filter-category-icon {

    font-size: 24px;

    display: block;

    margin-bottom: 4px;

}



.filter-category-label {

    font-size: 11px;

    font-weight: 600;

    color: var(--text-primary);

    line-height: 1.2;

}



.filter-category-btn.selected .filter-category-label {

    color: white;

}



/* Urgency Buttons */

.urgency-selector {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

}



.urgency-btn {

    padding: 16px;

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius);

    background-color: var(--bg-white);

    cursor: pointer;

    text-align: center;

    transition: all 0.2s;

    font-size: 14px;

    font-weight: 600;

}



.urgency-btn:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow);

}



.urgency-btn.normal {

    border-color: var(--text-secondary);

    color: var(--text-secondary);

}



.urgency-btn.normal:hover {

    background-color: var(--text-secondary);

    color: white;

}



.urgency-btn.urgent {

    border-color: var(--warning-color);

    color: var(--warning-color);

}



.urgency-btn.urgent:hover {

    background-color: var(--warning-color);

    color: white;

}



.urgency-btn.critical {

    border-color: var(--danger-color);

    color: var(--danger-color);

}



.urgency-btn.critical:hover {

    background-color: var(--danger-color);

    color: white;

}



.urgency-icon {

    font-size: 28px;

    display: block;

    margin-bottom: 4px;

}



/* Primary Button */

.btn-primary {

    width: 100%;

    padding: 18px;

    background-color: var(--primary-color);

    color: white;

    border: none;

    border-radius: var(--border-radius);

    font-size: 18px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s;

    margin-top: 16px;

}



.btn-primary:hover {

    background-color: var(--primary-hover);

    transform: translateY(-2px);

    box-shadow: var(--shadow-hover);

}



.btn-primary:active {

    transform: translateY(0);

}



/* Secondary Button */

.btn-secondary {

    width: 100%;

    padding: 16px;

    background-color: var(--bg-white);

    color: var(--text-primary);

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius);

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s;

    margin-top: 12px;

}



.btn-secondary:hover {

    border-color: var(--primary-color);

    color: var(--primary-color);

}



/* Installer Card */

.installer-card {

    background-color: var(--bg-white);

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius-lg);

    padding: 20px;

    margin-bottom: 16px;

    transition: all 0.2s;

    box-shadow: var(--shadow);

}



.installer-card:hover {

    border-color: var(--primary-color);

    box-shadow: var(--shadow-hover);

    transform: translateY(-2px);

}



.installer-header {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 16px;

}



.installer-avatar {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    background: linear-gradient(135deg, #006CCC 0%, #0055A3 100%);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    color: white;

    flex-shrink: 0;

}



.installer-info {

    flex: 1;

}



.installer-name {

    font-size: 18px;

    font-weight: 700;

    margin-bottom: 4px;

}



.installer-rating {

    display: flex;

    align-items: center;

    gap: 4px;

    font-size: 14px;

    color: var(--text-secondary);

}



.rating-stars {

    color: #FFA726;

    font-size: 16px;

}



.installer-details {

    display: flex;
    
    justify-content: space-around;

    gap: 12px;

    margin-bottom: 16px;
    
    text-align: center;

}



.detail-item {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

}



.detail-icon {

    font-size: 18px;

}



.detail-label {

    color: var(--text-secondary);

    font-size: 12px;

}



.detail-value {

    font-weight: 600;

    font-size: 16px;

}



.installer-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 16px;

}



.tag {

    background-color: var(--bg-light);

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 12px;

    color: var(--text-secondary);

}



/* Info Box */

.info-box {

    background-color: #E3F2FD;

    border: 2px solid #90CAF9;

    border-radius: var(--border-radius);

    padding: 16px;

    margin: 20px 0;

    text-align: center;

}



.info-box-title {

    font-weight: 600;

    margin-bottom: 4px;

    color: var(--text-primary);

}



.info-box-text {

    font-size: 14px;

    color: var(--text-secondary);

    line-height: 1.5;

}



/* Timer */

.timer {

    text-align: center;

    padding: 12px;

    background-color: var(--bg-light);

    border-radius: 8px;

    font-size: 14px;

    color: var(--text-secondary);

    margin-bottom: 16px;

}



/* Filter Tabs */

.filter-tabs {

    display: flex;

    gap: 8px;

    margin-bottom: 20px;

}



.filter-tab {

    flex: 1;

    padding: 12px;

    background-color: var(--bg-white);

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius-sm);

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    text-align: center;

    transition: all 0.2s;

}



.filter-tab.active {

    background-color: var(--primary-color);

    color: white;

    border-color: var(--primary-color);

}



/* Toggle Switch */

.toggle-container {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 16px;

    background-color: var(--bg-white);

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius);

    margin-bottom: 16px;

}



.toggle-label {

    font-size: 16px;

    font-weight: 600;

}



.toggle-switch {

    position: relative;

    width: 56px;

    height: 32px;

    background-color: var(--primary-color);

    border-radius: 16px;

    cursor: pointer;

    transition: all 0.3s;

}



.toggle-switch::after {

    content: '';

    position: absolute;

    width: 28px;

    height: 28px;

    background-color: white;

    border-radius: 50%;

    top: 2px;

    right: 2px;

    transition: all 0.3s;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}



.toggle-switch.off {

    background-color: var(--text-secondary);

}



.toggle-switch.off::after {

    right: 26px;

}



/* Stats Grid */

.stats-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 20px;

}



.stat-card {

    background-color: var(--bg-white);

    border: 2px solid var(--border-color);

    padding: 20px;

    border-radius: var(--border-radius);

    text-align: center;

    transition: all 0.2s;

}



.stat-card:hover {

    border-color: var(--primary-color);

}



.stat-value {

    font-size: 28px;

    font-weight: 700;

    margin-bottom: 4px;

    color: var(--primary-color);

}



.stat-label {

    font-size: 12px;

    color: var(--text-secondary);

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



/* Request Card (for installer view) */

.request-card {

    background-color: var(--bg-white);

    border: 2px solid var(--border-color);

    border-radius: var(--border-radius-lg);

    padding: 20px;

    margin-bottom: 16px;

    box-shadow: var(--shadow);

    transition: all 0.2s;

}



.request-card:hover {

    border-color: var(--primary-color);

    box-shadow: var(--shadow-hover);

}



.request-card.normal {

    border-right: 4px solid var(--text-secondary);

}



.request-card.urgent {

    border-right: 4px solid var(--warning-color);

}



.request-card.critical {

    border-right: 4px solid var(--danger-color);

}



.request-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 12px;

}



.request-title {

    font-size: 16px;

    font-weight: 700;

    margin-bottom: 4px;

}



.request-address {

    font-size: 14px;

    color: var(--text-secondary);

}



.request-badge {

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

}



.request-badge.normal {

    background-color: var(--text-secondary);

    color: white;

}



.request-badge.urgent {

    background-color: var(--warning-color);

    color: white;

}



.request-badge.critical {

    background-color: var(--danger-color);

    color: white;

}



.request-description {

    font-size: 14px;

    color: var(--text-primary);

    margin-bottom: 12px;

    line-height: 1.5;

}



.request-meta {

    display: flex;

    gap: 16px;

    font-size: 14px;

    color: var(--text-secondary);

}



/* Tracking Info */

.tracking-info {

    background-color: var(--bg-white);

    padding: 24px;

    text-align: center;

}



.tracking-avatar {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    background: linear-gradient(135deg, #006CCC 0%, #0055A3 100%);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 40px;

    color: white;

    margin: 0 auto 16px;

}



.tracking-name {

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 8px;

}



.tracking-status {

    font-size: 16px;

    color: var(--text-secondary);

    margin-bottom: 8px;

}



.tracking-eta {

    font-size: 18px;

    font-weight: 600;

    color: var(--primary-color);

    margin-bottom: 20px;

}



.tracking-actions {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

}



/* Bottom Sheet */

.bottom-sheet {

    background-color: var(--bg-white);

    border-radius: 20px 20px 0 0;

    padding: 20px;

    padding-bottom: 80px;

    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);

    margin-top: 16px;

}



/* Menu List */

.menu-list {

    list-style: none;

}



.menu-item {

    padding: 16px;

    border-bottom: 1px solid var(--border-color);

    display: flex;

    align-items: center;

    justify-content: space-between;

    cursor: pointer;

    transition: background-color 0.2s;

}



.menu-item:hover {

    background-color: var(--bg-light);

}



.menu-item:last-child {

    border-bottom: none;

}



.menu-icon {

    font-size: 24px;

    margin-left: 12px;

}



.menu-label {

    flex: 1;

    font-size: 16px;

}



.menu-value {

    font-size: 14px;

    color: var(--text-secondary);

}



/* Badge */

.badge {

    display: inline-block;

    background-color: var(--danger-color);

    color: white;

    font-size: 12px;

    font-weight: 700;

    padding: 2px 8px;

    border-radius: 12px;

    margin-right: 8px;

}



/* Empty State */

.empty-state {

    text-align: center;

    padding: 60px 20px;

}



.empty-icon {

    font-size: 64px;

    margin-bottom: 16px;

    opacity: 0.3;

}



.empty-text {

    font-size: 16px;

    color: var(--text-secondary);

}



/* Loading */

.loading {

    text-align: center;

    padding: 40px;

    font-size: 14px;

    color: var(--text-secondary);

}



/* Responsive */

@media (max-width: 480px) {

    .container {

        box-shadow: none;

    }

    

    .installer-details {

        flex-direction: row;
        
        justify-content: space-around;

    }

    

    .stats-grid {

        grid-template-columns: 1fr;

    }

}



/* Welcome Screen */

.welcome-container {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 100vh;

    padding: 40px 20px;

}



.welcome-logo {

    font-size: 72px;

    margin-bottom: 24px;

}



.welcome-title {

    font-size: 36px;

    font-weight: 700;

    color: white;

    margin-bottom: 12px;

}



.welcome-subtitle {

    font-size: 18px;

    color: rgba(255, 255, 255, 0.9);

    margin-bottom: 48px;

    text-align: center;

}



.welcome-buttons {

    width: 100%;

    max-width: 400px;

}



.welcome-btn {

    width: 100%;

    padding: 20px;

    background-color: white;

    color: var(--primary-color);

    border: none;

    border-radius: var(--border-radius);

    font-size: 18px;

    font-weight: 600;

    cursor: pointer;

    margin-bottom: 16px;

    transition: all 0.2s;

}



.welcome-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

}



.welcome-btn.secondary {

    background-color: var(--primary-color);

    color: white;

    border: 2px solid white;

}

