/* ========================================
   FEUT FEUT - COURIER INTERFACE STYLES
   ======================================== */

/* ========== COURIER DASHBOARD ========== */
.courier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 70px;
    z-index: 10;
}

.courier-status {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--success-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.status-offline {
    color: var(--text-light);
}

.status-online {
    color: var(--success-color);
}

/* ========== COURIER STATS ========== */
.courier-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.stat-icon i {
    color: var(--white);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== COURIER MAP VIEW ========== */
#courierMapView {
    height: calc(100vh - 390px);
}

/* ========== COURIER ACTIONS BAR ========== */
.courier-actions-bar {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.courier-actions-bar .btn {
    flex: 1;
}

.btn-sos {
    position: relative;
    animation: sosGlow 2s infinite;
}

@keyframes sosGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 59, 48, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 59, 48, 0.8);
    }
}

/* ========== DELIVERY REQUEST MODAL ========== */
.request-modal {
    max-width: 600px;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--background-color);
}

.request-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.request-timer {
    background: var(--danger-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.request-details {
    margin-bottom: 30px;
}

.request-route {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.route-point {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.route-point i {
    font-size: 12px;
    margin-top: 6px;
}

.route-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.route-address {
    font-weight: 600;
    font-size: 16px;
}

.route-line {
    width: 2px;
    height: 20px;
    background: #E0E0E0;
    margin-left: 5px;
    margin-bottom: 10px;
}

.request-info {
    display: flex;
    justify-content: space-around;
    background: var(--white);
    border: 2px solid var(--background-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.info-item span {
    font-weight: 600;
    font-size: 16px;
}

.request-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== ACTIVE DELIVERY ========== */
.delivery-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 70px;
    z-index: 10;
}

.delivery-header h2 {
    flex: 1;
    font-size: 24px;
    font-weight: 600;
}

.delivery-step-indicator {
    background: var(--success-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

#activeDeliveryMap {
    height: calc(100vh - 400px);
}

.active-delivery-card {
    background: var(--white);
    padding: 25px;
    border-top: 2px solid var(--background-color);
}

.client-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--background-color);
}

.client-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.info-row i {
    width: 20px;
    color: var(--primary-color);
}

.info-row span {
    flex: 1;
    font-weight: 500;
}

.package-info {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.package-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.package-info p {
    color: var(--text-light);
    line-height: 1.6;
}

.delivery-actions {
    margin-top: 20px;
}

/* ========== OTP VALIDATION ========== */
.otp-validation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
    text-align: center;
}

.otp-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.otp-icon i {
    font-size: 50px;
    color: var(--white);
}

.otp-validation-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.otp-validation-container p {
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 400px;
}

.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.otp-digit {
    width: 50px;
    height: 60px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

/* ========== EARNINGS ========== */
.earnings-summary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d99 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.total-earnings {
    margin-bottom: 30px;
}

.earnings-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.earnings-amount {
    font-size: 48px;
    font-weight: 700;
}

.earnings-breakdown {
    padding: 20px;
}

.earnings-breakdown h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.period-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--background-color);
    padding: 5px;
    border-radius: var(--border-radius);
}

.period-tab {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: calc(var(--border-radius) - 3px);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.period-tab.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

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

.earnings-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.earnings-item-info {
    flex: 1;
}

.earnings-item-route {
    font-weight: 500;
    margin-bottom: 5px;
}

.earnings-item-time {
    font-size: 14px;
    color: var(--text-light);
}

.earnings-item-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--success-color);
}

/* ========== COURIER HISTORY ========== */
.courier-history-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.courier-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.courier-history-date {
    font-size: 14px;
    color: var(--text-light);
}

.courier-history-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--success-color);
}

.courier-history-route {
    margin-bottom: 15px;
}

.courier-history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--background-color);
}

.courier-history-distance {
    font-size: 14px;
    color: var(--text-light);
}

.courier-history-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.courier-history-rating i {
    color: var(--warning-color);
}

.courier-history-rating span {
    font-weight: 600;
}
