/* =========================================
   ACCOUNT PAGE STYLES
   ========================================= */

/* Auth Section - Re-designed to look premium, professional, and colorful */
.auth-section {
    display: flex;
    justify-content: center;
    padding: 30px 10px;
}

.auth-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Colorful gradient accent on top of the card */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), #ff9f1c, #ff6b6b);
}

.auth-header {
    margin-bottom: 30px;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(242, 16, 16, 0.1), rgba(255, 159, 28, 0.1));
    margin-bottom: 15px;
    animation: iconFloat 3s ease-in-out infinite;
}

.auth-icon i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), #ff9f1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.auth-header h2 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-form {
    display: none;
    text-align: left;
    animation: authSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.active {
    display: block;
}

@keyframes authSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #ff9f1c;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--dark-blue);
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(242, 16, 16, 0.15);
}

.form-control:focus + i {
    color: var(--primary-color);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Custom dropdown arrow styling */
select.form-control {
    padding-right: 35px;
}

/* Premium Primary Buttons */
.btn-primary.btn-full {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), #ff4d4d);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(242, 16, 16, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(242, 16, 16, 0.3);
}

.btn-primary.btn-full:active {
    transform: translateY(0);
}

/* Dashboard Section */
.profile-card {
    background: linear-gradient(135deg, var(--primary-color), #ff4d4d);
    border-radius: var(--radius);
    padding: 25px 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(242, 16, 16, 0.2);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: 2px solid rgba(255,255,255,0.5);
}

.profile-details h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.profile-details p {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.orders-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.order-tab {
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--white);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-tab.active {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-orders {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.empty-orders i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Order Item Card */
.order-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.order-id {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

.order-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.order-status {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-status.pending { background: #fff7ed; color: #ea580c; }
.order-status.assigned { background: #eff6ff; color: #2563eb; }
.order-status.in-transit { background: #fdf4ff; color: #c026d3; }
.order-status.delivered { background: #ecfdf5; color: #059669; }
.order-status.cancelled { background: #fef2f2; color: #dc2626; }

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-price {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Tracking Modal */
.tracking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,2,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: flex-end;
}

.tracking-overlay.show {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.tracking-modal {
    background: var(--white);
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 25px 20px 40px;
    animation: slideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
    max-height: 85vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .tracking-overlay { align-items: center; justify-content: center; padding: 20px; }
    .tracking-modal { border-radius: 24px; max-width: 500px; padding: 30px; }
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tracking-header h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
}

.order-id-badge {
    display: inline-block;
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.track-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Timeline */
.tracking-timeline {
    position: relative;
    padding-left: 25px;
    margin-bottom: 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -25px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--border-color);
    z-index: 2;
}

.timeline-item.completed .timeline-icon {
    background: #10B981;
    box-shadow: 0 0 0 1px #10B981;
}

.timeline-item.active .timeline-icon {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(242, 16, 16, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(242, 16, 16, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(242, 16, 16, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 16, 16, 0); }
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-item.completed .timeline-content h4,
.timeline-item.active .timeline-content h4 {
    color: var(--dark-blue);
}

.timeline-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Rider Info Box */
.rider-info-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.rider-info-box h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rider-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rider-avatar {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-blue);
    box-shadow: var(--shadow-sm);
}

.r-name {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

.r-plate {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.rider-call-btn {
    margin-left: auto;
    width: 40px;
    height: 40px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
