/*
Theme Name: Transfer Booking Pro
Description: قالب حرفه‌ای رزرو ترانسفر با ووکامرس و المنتور
Version: 1.0
Author: Your Name
Text Domain: transfer-booking
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background: #f8fafc;
    color: #1f2937;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Transfer Booking Styles */
.transfer-booking-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 600px;
    margin: 20px auto;
}

.transfer-booking-header {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    padding: 20px;
    text-align: center;
}

.transfer-booking-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.transfer-booking-header p {
    opacity: 0.9;
    font-size: 14px;
}

.transfer-booking-content {
    padding: 20px;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.message {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.message.bot .message-content {
    background: #e5e7eb;
    color: #374151;
}

.message.user .message-content {
    background: #3b82f6;
    color: white;
}

.message-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.option-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.input-group {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Date Picker */
.date-picker {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.date-picker h3 {
    margin-bottom: 16px;
    color: #374151;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.calendar-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.calendar-cell:hover {
    background: #f3f4f6;
}

.calendar-cell.selected {
    background: #3b82f6;
    color: white;
}

.calendar-cell.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Time Picker */
.time-picker {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.time-slot {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.time-slot:hover {
    background: #f3f4f6;
}

.time-slot.selected {
    background: #3b82f6;
    color: white;
}

.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Map Picker */
.map-picker {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-top: 16px;
}

.map-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.map-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.map-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.quick-locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.location-btn {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.location-btn:hover {
    background: #f3f4f6;
}

.map-area {
    height: 300px;
    background: linear-gradient(135deg, #86efac, #bfdbfe);
    position: relative;
    cursor: crosshair;
}

.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.map-marker.selected {
    background: #3b82f6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #dcfce7;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.notification.error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.notification.warning {
    background: #fefce8;
    border-left: 4px solid #eab308;
    color: #854d0e;
}

/* Payment Gateway */
.payment-gateway {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.payment-method:hover {
    border-color: #3b82f6;
}

.payment-method.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* SMS Verification */
.sms-verification {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    text-align: center;
}

.verification-code {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.verification-code input {
    width: 50px;
    height: 50px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.verification-code input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .transfer-booking-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .verification-code {
        gap: 4px;
    }
    
    .verification-code input {
        width: 40px;
        height: 40px;
    }
}

/* WordPress Admin Styles */
.transfer-booking-admin {
    background: white;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.transfer-booking-admin h2 {
    margin-bottom: 20px;
    color: #1d2327;
}

.form-table {
    width: 100%;
}

.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
    text-align: right;
}

.form-table td {
    padding: 15px 10px;
}

.form-table input,
.form-table select,
.form-table textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}
