/* resources/css/wassal-li.css */
:root {
    --primary-dark: #000046;
    --primary-light: #1cb5e0;
    --gradient: linear-gradient(135deg, #000046 0%, #1cb5e0 100%);
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #e0e0e0;
    --background-light: #f8f9fa;
    --white: #ffffff;
}

.page-wassal-li {
    padding: 1rem 0;
    background: var(--white);
    min-height: 100vh;
}

.wassal-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* كبسولات التنقل */
.caps {
    gap: 1rem;
}

.cap {
    flex: 1;
    min-width: 120px;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    background: var(--white);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    color: var(--text-light);
}

.cap.active {
    background: var(--gradient);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 70, 0.2);
}

.cap i {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.cap.active i {
    color: var(--white);
}

.cap .label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* مربعات الموقع */
.location-boxes {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 2rem;
    gap: 1rem;
}

.location-box {
    flex: 1;
    border: 2px solid var(--border-light);
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.location-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-box:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 181, 224, 0.15);
}

.location-box:hover::before {
    opacity: 1;
}

.box-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.subtext {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* زر التبديل */
.swap-icon {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
}

.btn-swap {
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-swap:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 70, 0.3);
}

/* خيارات الموقع */
.location-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.option-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.option-btn:hover {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
    transform: translateX(5px);
}

/* عناصر النموذج */
.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-select, .form-control {
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(28, 181, 224, 0.1);
}

/* إدخال التاريخ والوقت */
.datetime-input {
    display: flex;
    gap: 0.5rem;
}

.btn-calendar {
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.btn-calendar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 70, 0.2);
}

/* منطقة الملاحظات */
.notes-container {
    position: relative;
}

.notes-textarea {
    padding-right: 3rem;
    min-height: 100px;
    resize: vertical;
}

.btn-copy {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* الأزرار الرئيسية */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 70, 0.3);
}

.btn-secondary {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* النوافذ المنبثقة */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.invoice-content {
    max-width: 500px;
}

.calendar-header, .invoice-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3, .invoice-header h3 {
    color: var(--primary-dark);
    margin: 0;
    font-weight: 700;
}

/* تفاصيل الفاتورة */
.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.invoice-row:last-child {
    border-bottom: none;
}

.invoice-row span:first-child {
    color: var(--text-light);
}

.invoice-row span:last-child {
    color: var(--primary-dark);
}

/* حالة الإخفاء */
.hidden {
    display: none !important;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .location-boxes {
        flex-direction: column;
    }
    
    .swap-icon {
        margin: 1rem 0;
        transform: rotate(90deg);
        justify-content: center;
    }
    
    .datetime-input {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .caps {
        justify-content: flex-start;
    }
    
    .cap {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .wassal-container {
        padding: 0 0.5rem;
    }
    
    .location-box {
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}