body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f8fa;
    color: #333;
}

/* iPhone Status Bar */
.status-bar {
    height: 44px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.status-bar .time {
    font-weight: 600;
}

.status-bar .icons {
    display: flex;
    gap: 5px;
}

/* App Container */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Content */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* Make room for tab bar */
}

/* Tab Bar */
.tab-bar {
    height: 80px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 10px;
    padding: 8px 0;
}

.tab-item.active {
    color: #ff3b7c;
}

.tab-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

/* Common Components */
.page-header {
    padding: 16px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.back-button {
    font-size: 24px;
    color: #333;
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: 12px;
    margin: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Button Styles */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #ff3b7c;
    color: white;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-large {
    width: calc(100% - 32px);
    margin: 16px;
    padding: 16px;
    font-size: 18px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #666;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #ff3b7c;
    outline: none;
}

/* Address Selection */
.address-input {
    display: flex;
    align-items: center;
    background-color: #f7f8fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.address-icon {
    margin-right: 12px;
    color: #ff3b7c;
    font-size: 24px;
}

.address-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
}

/* Service Selection */
.service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.service-option {
    flex: 1 0 calc(50% - 12px);
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.service-option.selected {
    border-color: #ff3b7c;
    background-color: rgba(255, 59, 124, 0.05);
}

.service-option i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #ff3b7c;
}

/* Emergency Button */
.emergency-button {
    background-color: #ff3b3b;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    position: fixed;
    right: 20px;
    bottom: 100px;
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(255, 59, 59, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
    }
}

/* Map View */
.map-container {
    height: 200px;
    background-color: #e9e9e9;
    margin: 16px 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Community Styles */
.post-card {
    margin-bottom: 16px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.post-author {
    font-weight: 600;
    margin-bottom: 2px;
}

.post-meta {
    font-size: 12px;
    color: #999;
}

.post-content {
    padding: 0 16px 16px;
}

.post-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 8px 0;
}

.post-actions {
    display: flex;
    border-top: 1px solid #f0f0f0;
    color: #666;
}

.post-action {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.post-action i {
    margin-right: 6px;
}

/* Profile Styles */
.profile-header {
    background-color: #fff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid #ff3b7c;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 16px;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 600;
    font-size: 18px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* List Styles */
.list-item {
    padding: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.list-icon {
    width: 24px;
    margin-right: 12px;
    color: #666;
}

.list-content {
    flex: 1;
}

.list-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.list-subtitle {
    font-size: 14px;
    color: #999;
}

.list-arrow {
    color: #ccc;
}

/* Order Styles */
.order-card {
    margin-bottom: 16px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.order-number {
    font-weight: 600;
}

.order-status {
    color: #ff3b7c;
    font-weight: 600;
}

.order-content {
    display: flex;
    margin-bottom: 12px;
}

.order-icon {
    font-size: 24px;
    margin-right: 12px;
    color: #ff3b7c;
}

.order-details {
    flex: 1;
}

.order-route {
    display: flex;
    flex-direction: column;
}

.order-address {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.order-address::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.order-start::before {
    background-color: #4CAF50;
}

.order-end::before {
    background-color: #FF5722;
}

.order-time {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.order-price {
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

/* Medical Appointment Styles */
.doctor-card {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    margin-right: 16px;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
}

.doctor-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.doctor-specialty {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.doctor-hospital {
    font-size: 12px;
    color: #999;
}

.appointment-slot {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.appointment-time {
    font-weight: 600;
}

.appointment-status {
    color: #ff3b7c;
}

/* Utilities */
.text-primary {
    color: #ff3b7c;
}

.text-danger {
    color: #ff3b3b;
}

.text-success {
    color: #4CAF50;
}

.text-warning {
    color: #FFC107;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }

.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.w-full { width: 100%; }
.h-full { height: 100%; }
 