.shipper-dashboard {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}
.pricing-action {
    margin-top: 20px;
    margin-bottom: 20px;
}
/* Sidebar */
.shipper-dashboard .sidebar {
    width: 260px;
   background-color: #0073aa;
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.shipper-dashboard .sidebar-header {
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid var(--gray);
}

.shipper-dashboard .sidebar-menu {
    flex: 1;
    padding: 10px 0;
}
.card.gradient-card h3 {
    color: white;
}
.shipper-dashboard .sidebar-menu li {
    list-style: none;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    margin: 5px 10px;
    font-weight: 500;
    color: var(--white);
    transition: background 0.3s, color 0.3s;
}

.shipper-dashboard .sidebar-menu li svg {
    margin-right: 12px;
    min-width: 24px;
}

.shipper-dashboard .sidebar-menu li.active,
.shipper-dashboard .sidebar-menu li:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.shipper-dashboard .sidebar-menu li a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
}

/* Main Content */
.shipper-dashboard .main-content {
    flex: 1;
    padding: 30px;
    overflow-x: auto;
    background-color: var(--light-gray);
}

/* Topbar */
.shipper-dashboard .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 12px;
}

.shipper-dashboard .top-bar .welcome {
    font-weight: 600;
    font-size: 1.3rem;
    color:var(--white);
}

.shipper-dashboard .top-bar .notifications {
    position: relative;
    cursor: pointer;
}

.shipper-dashboard .notif-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Cards */
.shipper-dashboard .cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.notifications svg {
    color: white;
}
.shipper-dashboard .card {
    flex: 1;
    min-width: 220px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.shipper-dashboard .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.shipper-dashboard .gradient-card {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    position: relative;
    overflow: hidden;
}

.shipper-dashboard .gradient-card h3 {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 12px;
}

.shipper-dashboard .gradient-card p {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Tables */
.shipper-dashboard .table-wrapper {
    overflow-x: auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 20px;
    margin-top: 20px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

.shipper-dashboard table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.shipper-dashboard table th,
.shipper-dashboard table td {
    padding: 14px 16px;
    text-align: left;
}

.shipper-dashboard table th {
    background-color: var(--primary-color);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 600;
}

.shipper-dashboard table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.shipper-dashboard table a.btn-primary {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.shipper-dashboard table a.btn-primary:hover {
    background-color: var(--primary-hover);
}
button.btn-primary {
    font-family: 'Montserrat';
    /* height: 55px; */
}
/* Forms */
.shipper-dashboard .premium-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 100%;
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.shipper-dashboard .premium-form .form-row {
    display: flex;
    flex-direction: column;
}

.shipper-dashboard .premium-form label {
    font-weight: 500;
    margin-bottom: 6px;
}

.shipper-dashboard .premium-form input,
.shipper-dashboard .premium-form select,
.shipper-dashboard .premium-form textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--gray);
    font-size: 1rem;
    transition: border 0.3s;
}

.shipper-dashboard .premium-form input:focus,
.shipper-dashboard .premium-form select:focus,
.shipper-dashboard .premium-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Buttons */
.shipper-dashboard .btn-primary {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

.shipper-dashboard .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Tabs */

.shipper-dashboard .tab-content h2 {
    margin-bottom: 25px;
}

.subscription-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

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

.plan-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.plan-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-badge.basic {
    background: #e0e7ff;
    color: #3730a3;
}

.plan-badge.pro {
    background: #dcfce7;
    color: #166534;
}

.plan-badge.enterprise {
    background: #fef3c7;
    color: #92400e;
}
.plan-features {
    margin: 16px 0;
    padding-left: 18px;
}

.plan-features li {
    margin-bottom: 6px;
    font-size: 12px;
}

.plan-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0;
    font-size: 14px;
}

.status.active {
    color: #16a34a;
    font-weight: 600;
}

.status.paid {
    color: #16a34a;
    font-weight: 500;
}
.plan-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    animation: modalZoom .2s ease;
}

@keyframes modalZoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 10px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}
.upgrade-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.upgrade-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    background: #fafafa;
}

.upgrade-card h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

.upgrade-card p {
    margin-bottom: 12px;
    font-size: 14px;
}

.upgrade-card.featured {
    border: 2px solid #22c55e;
    background: #f0fdf4;
}
.modal-actions .close-modal {
    background: #0073AA;
}
.upgrade-card button {
    background: #0073AA;
}
.shipper-dashboard table th:first-child {
    border-top-left-radius: 10px;
}
.shipper-dashboard table th:last-child {
    border-top-right-radius: 10px;
}
@media (max-width: 640px) {
    .plan-actions {
        flex-direction: column;
    }

    .modal-content {
        margin: 0 14px;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .shipper-dashboard .cards-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .shipper-dashboard {
        flex-direction: column;
    }
    .shipper-dashboard .sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
    }
    .shipper-dashboard .sidebar-menu {
        display: flex;
        gap: 10px;
        padding: 0;
    }
    .shipper-dashboard .sidebar-menu li {
        margin: 0;
        padding: 10px 12px;
        white-space:nowrap;
    }
}

/* Load Details Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    padding: 24px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Load Details Content */
.load-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.load-detail-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.load-detail-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #dee2e6;
}

.load-detail-section h4 svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    min-width: 120px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: #343a40;
    font-size: 15px;
    line-height: 1.5;
}

.detail-value strong {
    color: #212529;
    font-weight: 700;
}

/* Status Badge in Modal */
.modal-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

/* Timeline */
.load-timeline {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f1f3f5;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.timeline-item.completed::before {
    background: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.timeline-item.pending::before {
    background: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.timeline-item.future::before {
    background: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.2);
}

.timeline-content h5 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #495057;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.timeline-date {
    font-weight: 600;
    color: #28a745;
}

/* Action Buttons in Modal */
.load-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f1f3f5;
    flex-wrap: wrap;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.btn-info:hover:not(:disabled) {
    background-color: #138496;
    border-color: #117a8b;
}

/* Loading in Modal */
.modal .loading-indicator {
    padding: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .load-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .load-detail-section {
        padding: 20px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .load-modal-actions {
        flex-direction: column;
    }
    
    .load-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Update existing btn-sm styles for icons */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.pricing-grid { display: grid; grid-template-columns: repeat(2,1fr); gap:20px; margin-bottom:20px; }
.pricing-card { border:1px solid #e5e7eb; border-radius:12px; padding:20px; background:#fff; transition:.25s; cursor:pointer; position:relative; }
.pricing-card.active { border-color:#4f46e5; box-shadow:0 12px 25px rgba(79,70,229,.15); }
.badge { position:absolute; top:-12px; right:15px; padding:4px 10px; border-radius:20px; font-size:12px; background:#e0e7ff; color:#0073aa; }
.badge.pro { background:#0073aa; color:#fff; }
.subscription-pricing { display:flex; flex-direction:column; }
.subscription-cards { display:flex; gap:20px; flex-wrap:wrap; margin-top:10px; }
.subscription-cards .pricing-card { flex:1; cursor:default; position:relative; }
.subscription-cards .pricing-card h5 { margin:0 0 5px; font-size:16px; }
.subscription-cards .pricing-card .select-subscription { margin-top:10px; display:block; width:100%; }

.shipper-dashboard input[name='payment_option']{
    width: auto;
    margin-bottom: 0px;
}