/* 
 * Aptso Mart OS - Logistics & Driver UI
 * High-Contrast & Native Feel
 */

:root {
    --logistics-accent: #3b82f6; /* Modern Blue for logistics */
    --logistics-success: #10b981;
    --logistics-danger: #ef4444;
}

/* Admin Packing Console */
.aptso-packing-console-ui {
    padding: 10px 0;
}

.weight-dashboard {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px !important;
}

.weight-item {
    text-align: center;
    flex: 1;
}

.weight-item .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.weight-item .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--titanium-text-main);
}

.weight-item.highlight .value {
    color: var(--logistics-accent);
}

.scale-bridge-ui {
    margin-bottom: 20px;
}

.scale-bridge-ui label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.scale-bridge-ui .input-group {
    display: flex;
    gap: 8px;
}

.scale-input {
    flex: 1;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.btn-verify {
    background: #f1f5f9;
    padding: 0 15px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #ddd;
    cursor: pointer;
}

.scale-bridge-ui .hint {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 8px;
}

.qr-preview-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.order-qr-preview {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
}

.btn-print-qr, .btn-dispatch {
    background: var(--titanium-accent) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 150, 255, 0.2);
}

.full-width { width: 100%; }

/* Driver Dashboard (Frontend) */
.driver-dashboard-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.driver-task-card {
    margin-bottom: 20px;
    border-left: 5px solid var(--logistics-accent);
}

.driver-task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.driver-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000;
    color: white !important;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.driver-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.status-btn {
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    font-size: 13px;
    cursor: pointer;
}

.btn-arrived { background: #fee2e2; color: #b91c1c; }
.btn-done { background: #dcfce7; color: #15803d; }

/* Pulse animation for Live Tasks */
.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--logistics-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
