/* Register & login form */

.vahak-form h2 {
    margin-bottom: 20px;
}

.role-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.role-card {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-card:hover {
    background: #e2e8f0;
}

.role-card.active {
    background: #2563eb;
    color: #fff;
}


/* Login specific */
.vahak-form p {
    font-size: 14px;
    color: #555;
}

.vahak-form a {
    color: #2563eb;
    text-decoration: none;
}

.vahak-form a:hover {
    text-decoration: underline;
}

.vahak-form {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    font-family: sans-serif;
}

/* 🔥 IMPORTANT FIX */
.vahak-form input,
.vahak-form button {
    width: 100%;
    box-sizing: border-box; /* ✅ ye main fix hai */
}

/* Inputs */
.vahak-form input {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Button */
.vahak-form button {
    padding: 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.vahak-form button:hover {
    background: #1d4ed8;
}


/* Layout */
.vahak-dashboard {
    display: flex;
    height: 100vh;
    font-family: sans-serif;
}

/* Sidebar */
.vahak-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px; 
    overflow-y: auto;
    background: #1d4ed8;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.vahak-sidebar .logo {
    margin-bottom: 30px;
}

.vahak-sidebar a {
    color: white;
    text-decoration: none !important;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: block;
}

.vahak-sidebar a:hover,
.vahak-sidebar .active {
    background: rgba(255,255,255,0.2);
}

.vahak-sidebar .logout {
    margin-top: auto;
    border: 1px solid #ddd;
}

.vahak-sidebar i {
    margin-right: 8px;
}

.vahak-sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.vahak-sidebar a:hover i {
    transform: scale(1.2);
}

/* Content */
.vahak-content {
    flex: 1;
    padding: 30px;
    background: #f8fafc;
    margin-left: 250px;
}

/* Top bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.post-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filters input,
.filters select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Empty State */
.empty-state {
    text-align: center;
    margin-top: 80px;
}

.empty-state img {
    width: 120px;
    margin-bottom: 10px;
}


/* transporter dashboard */
.page-id-6 header#site-header {
    display: none;
}

.page-id-6 .page-header {
    display: none;
}

.page-id-6 .site-main {
    max-width: 100%!important;
}


/* shipper dashboard */
.page-id-9 header#site-header {
    display: none;
}

.page-id-9 .page-header {
    display: none;
}

.page-id-9 .site-main {
    max-width: 100%!important;
}

/* lorry owner dashboard */
.page-id-11 header#site-header {
    display: none;
}

.page-id-11 .page-header {
    display: none;
}

.page-id-11 .site-main {
    max-width: 100%!important;
}

/* marketplace */
.page-id-25 header#site-header {
    display: none;
}

.page-id-25 .page-header {
    display: none;
}

.page-id-25 .site-main {
    max-width: 100%!important;
}

/* transport-directory */
.page-id-43 header#site-header {
    display: none;
}

.page-id-43 .page-header {
    display: none;
}

.page-id-43 .site-main {
    max-width: 100%!important;
}

/* profile */
.page-id-45 header#site-header {
    display: none;
}

.page-id-45 .page-header {
    display: none;
}

.page-id-45 .site-main {
    max-width: 100%!important;
}


/* template/dashboard/post-lorry.php start */

/* 🔥 MODAL BACKGROUND */
.vahak-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* 🔥 MODAL BOX */
.vahak-modal-content {
    background: #ffffff;
    width: 500px;
    max-width: 95%;
    margin: 60px auto;
    padding: 25px;
    border-radius: 16px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* Animation */
@keyframes fadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Close Button */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Title */
.modal-title {
    margin-bottom: 20px;
    text-align: center;
}

/* Form */
.vahak-form-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Group */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #444;
}

/* Inputs */
.vahak-form-modern input,
.vahak-form-modern select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.2s;
}

.vahak-form-modern input:focus,
.vahak-form-modern select:focus {
    border-color: #2563eb;
}

/* Row */
.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

/* Button */
.submit-btn {
    margin-top: 10px;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.submit-btn:hover {
    background: #1d4ed8;
}

.success-msg {
    color: #16a34a;
    background: #dcfce7;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: inline-block;
    font-weight: 500;
}

.suggestions {
    position: absolute;
    background: #fff;
    width: 80%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    border-radius: 6px;
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
}

.suggestions div:hover {
    background: #f1f1f1;
}

/* template/dashboard/post-lorry.php end */


/* template/dashboard/lorry-owner.php start */

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.filters input,
.filters select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 200px;
}

.filters button {
    padding: 10px 15px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.reset-btn {
    padding: 10px;
    background: #eee;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.lorry-list h3 {
    margin-bottom: 15px;
}

/* CARD */
.lorry-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* LEFT */
.lorry-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lorry-left img {
    width: 60px;
}

.lorry-left h4 {
    margin: 0;
}

.lorry-left p {
    margin: 2px 0;
    font-size: 14px;
}

/* CENTER */
.lorry-center {
    font-size: 14px;
    color: #333;
}

/* RIGHT */
.lorry-right {
    text-align: right;
}

/* STATUS BADGES */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.badge.pending {
    background: #ffe58f;
    color: #ad6800;
}

.badge.approved {
    background: #d9f7be;
    color: #237804;
}

.badge.rejected {
    background: #ffccc7;
    color: #a8071a;
}

/* DATE */
.date {
    font-size: 12px;
    color: #666;
}

/* ACTION */
.action {
    margin-top: 8px;
}

.reject-text {
    color: red;
    margin-right: 10px;
}

.reupload-btn {
    border: 1px solid #2563eb;
    background: white;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
/* template/dashboard/lorry-owner.php end */


/* template/dashboard/post-load.php start */

.multi-step {
    display: flex;
    width: 900px;
}

.step-sidebar {
    width: 30%;
    background: #f5f5f5;
    padding: 20px;
}

.step {
    margin: 15px 0;
    opacity: 0.5;
}

.step.active {
    font-weight: bold;
    color: #2563eb;
    opacity: 1;
}

.step-content {
    width: 70%;
    padding: 20px;
}

.step-box {
    display: none;
}

.step-box.active {
    display: block;
}

.step-box input,
.step-box select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.next-btn,
.prev-btn {
    padding: 10px 20px;
    margin-top: 10px;
}

button[name="vahak_add_load"] {
    background: #2563eb;
    color: white;
    border: none;
}

/* template/dashboard/post-load.php end */


.chip {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
    background: #f5f5f5;
    transition: 0.3s;
}

.chip:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.chip.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}




/* template/dashboard/shipper.php start */

.loads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* CARD */
.load-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.load-card:hover {
    transform: translateY(-3px);
}

/* TOP */
.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ROUTE */
.route p {
    margin: 4px 0;
    font-size: 14px;
}

/* DETAILS */
.details {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 13px;
}

/* PRICE */
.price {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

/* FOOTER */
.card-footer {
    margin-top: 10px;
}

.expired-msg {
    font-size: 12px;
    color: red;
}

.repost-btn {
    width: 100%;
    padding: 8px;
    border: 1px solid #007bff;
    background: #fff;
    color: #007bff;
    border-radius: 6px;
    cursor: pointer;
}

/* template/dashboard/shipper.php end */


/* template/dashboard/dashboard.php start */
.cards-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.dashboard-card h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.dashboard-card p {
    color: #777;
    font-size: 14px;
}
/* template/dashboard/dashboard.php end */

/* template/dashboard/transport-directory.php start */
.directory-header {
    background: #0c1b4d;
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.search-box {
    background: #fff;
    padding: 20px;
    margin-top: -20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-row input,
.search-row select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.search-row button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.transporter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.transporter-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.card-top {
    display: flex;
    gap: 10px;
}

.card-top img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.card-bottom {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-bottom button {
    border: 1px solid #3b82f6;
    background: transparent;
    color: #3b82f6;
    padding: 6px 12px;
    border-radius: 6px;
}
/* template/dashboard/transport-directory.php end */


/* template/dashboard/profile.php start */
/* 🔥 PROFILE HEADER */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.profile-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.profile-left h2 {
    margin: 0;
    font-size: 22px;
}

.profile-left p {
    margin: 4px 0;
    font-size: 14px;
    opacity: 0.9;
}

.membership {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* 🔥 PROFILE BOX */
.profile-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 🔥 FORM GRID (2 COLUMN) */
.profile-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* each field */
.form-group {
    display: flex;
    flex-direction: column;
}

/* full width fields */
.form-group.full,
.profile-form button.full {
    grid-column: span 2;
}

.profile-form button.full {
    grid-column: span 2;
    width: 120px;
    justify-self: end;
    padding: 8px 0;
    border-radius: 3px;
}

/* label */
.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* input */
.form-group input,
.form-group textarea {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #666;
}
/* template/dashboard/profile.php end */
