/* LDDFW Enhancer – Front-end Styles */

/* ── Shared ── */
.lddfw-enh-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: .95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
}
.lddfw-enh-btn:hover { opacity: .85; }
.lddfw-enh-btn-primary  { background: #2271b1; color: #fff !important; }
.lddfw-enh-btn-full     { display: block; text-align: center; margin-bottom: 16px; }

/* ── Navigation buttons ── */
.lddfw-enh-nav-buttons  { margin: 12px 0; }
.lddfw-enh-nav-btn-row  { display: flex; gap: 8px; flex-wrap: wrap; }
.lddfw-enh-btn-nav {
    padding: 9px 14px;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    font-size: .9em;
}
.lddfw-enh-btn-google { background: #4285f4; }
.lddfw-enh-btn-waze   { background: #33ccff; color: #000 !important; }
.lddfw-enh-btn-apple  { background: #1c1c1e; }
.lddfw-enh-address-text { font-size: .9em; color: #555; margin-bottom: 8px; }

/* ── Route Planner ── */
.lddfw-enh-route-planner h2 { margin-bottom: 16px; }
.lddfw-enh-stop-list  { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.lddfw-enh-stop-card  { border: 1px solid #e0e0e0; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.lddfw-enh-stop-header {
    background: #2271b1;
    color: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lddfw-enh-stop-num  { background: #fff; color: #2271b1; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9em; flex-shrink: 0; }
.lddfw-enh-stop-order { font-weight: 700; }
.lddfw-enh-stop-status { margin-left: auto; font-size: .8em; background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 20px; }
.lddfw-enh-stop-body { padding: 14px 16px; }
.lddfw-enh-stop-body p { margin: 4px 0 8px; font-size: .92em; }
.lddfw-enh-full-route { margin-bottom: 8px; }
.lddfw-enh-empty-state { padding: 40px; text-align: center; color: #888; border: 2px dashed #ddd; border-radius: 10px; }

/* ── Proof of Delivery Form ── */
.lddfw-enh-pod-form-wrap { max-width: 540px; }
.lddfw-enh-pod-form-wrap h3 { margin-bottom: 16px; }
.lddfw-enh-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.lddfw-enh-field label { font-weight: 600; font-size: .92em; }
.lddfw-enh-field textarea,
.lddfw-enh-field input[type="file"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: .9em;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.lddfw-enh-field textarea { min-height: 90px; resize: vertical; }
.lddfw-enh-field small { color: #888; font-size: .82em; }
.lddfw-enh-success { color: #0f5132; background: #d1e7dd; padding: 8px 12px; border-radius: 6px; }
.lddfw-enh-pod-existing { margin-bottom: 20px; padding: 14px; background: #f8f8f8; border-radius: 8px; }

/* ── Driver Commissions ── */
.lddfw-enh-my-commissions h2 { margin-bottom: 14px; }
.lddfw-enh-comm-summary { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lddfw-enh-comm-sum-card {
    display: flex;
    flex-direction: column;
    background: #f0f6fc;
    border: 1px solid #c3ddf9;
    border-radius: 8px;
    padding: 14px 20px;
    min-width: 160px;
}
.lddfw-enh-comm-sum-card span { font-size: .85em; color: #555; }
.lddfw-enh-comm-sum-card strong { font-size: 1.5em; color: #2271b1; }
.lddfw-enh-comm-sum-paid strong { color: #0f5132; }
.lddfw-enh-comm-table-front { width: 100%; border-collapse: collapse; font-size: .93em; }
.lddfw-enh-comm-table-front th,
.lddfw-enh-comm-table-front td { padding: 10px 12px; border-bottom: 1px solid #e8e8e8; text-align: left; }
.lddfw-enh-comm-table-front th { background: #f5f5f5; font-weight: 600; }
.lddfw-enh-status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .8em; font-weight: 600; }
.lddfw-enh-status-pending { background: #fff3cd; color: #856404; }
.lddfw-enh-status-paid    { background: #d1e7dd; color: #0f5132; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .lddfw-enh-nav-btn-row { flex-direction: column; }
    .lddfw-enh-btn-nav    { width: 100%; text-align: center; }
    .lddfw-enh-btn-full   { font-size: .9em; }
}
