/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fcfbfc, #fbfafb);
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: #ffffff;
    height: 80px;
    display: flex;
    justify-content: center;
    /* Horizontal center */
    align-items: center;
    /* Vertical center */
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    height: 45px;
    object-fit: contain;
}

/* Center Container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 800px;
    max-width: 957px;
    box-shadow: 0 20px 40px rgba(48, 47, 47, 0.3);
    color: #121111;
}

.card h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.card p {
    opacity: 0.85;
    margin-bottom: 30px;
}

/* Form Layout */
form {


    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #171616;
    transition: 0.3s ease;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px #83753f;
}

/* Full width fields */
.form-group:nth-child(1),
.form-group:nth-child(2),
.form-group:nth-child(3) {
    grid-column: span 2;
}

/* Button */
.btn {
    grid-column: span 2;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4c587, #ab833e);
    color: #4b0082;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
}




.button {
    grid-column: span 2;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4c587, #ab833e);
    color: #4b0082;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    form {
        grid-template-columns: 1fr;
    }

    .form-group,
    .btn {
        grid-column: span 1 !important;
    }
}


/*login*/



.logo {
    height: 45px;
    margin-right: 135px;
}

/* Login Card */
.login-card {
    max-width: 420px;
    margin: auto;
}

/* Subtext */
.sub-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Success & Error */
.success-msg {
    background: #e6fffa;
    color: #065f46;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* TOP BAR */
.top-bar {
    background: #3b5f8f;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 12px 40px;
    font-size: 18px;
}

.top-left span {
    margin-right: 20px;
}

.top-left i {
    margin-right: 6px;
}

.top-right a {
    color: #fff;
    margin-left: 12px;
    font-size: 14px;
    transition: 0.3s;
}

.top-right a:hover {
    color: #facc15;
}

/* MAIN NAVBAR */
.navbar {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    border-bottom: 1px solid #eee;
}

.logo {
    height: 45px;
}

.nav-center a {
    margin: 0 14px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: 0.3s;
}

.nav-center a:hover {
    color: #e11d48;
}

.nav-right a {
    color: #222;
    margin-left: 20px;
    font-size: 18px;
    transition: 0.3s;
}

.nav-right a:hover {
    color: #5b2d91;
}



.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Card */
.admin-table-card {
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    /* Prevent layout breaking */
}

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    min-width: 1000px;
    /* Keeps structure proper */
}

/* Header */
.admin-table thead {
    background: #f3f3f3;
    /* SAME as yours */
}

.admin-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

/* Body */
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fafafa;
    /* SAME as yours */
}

/* Withdraw Form */
.withdraw-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.withdraw-form select,
.withdraw-form input {
    padding: 7px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 13px;
    width: 350px;
}

.withdraw-form input {
    width: 70px;
}

/* Button */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert.success {
    background: #e6f7ec;
    /* SAME */
    color: #2e7d32;
}

.alert.error {
    background: #fdecea;
    /* SAME */
    color: #c62828;
}

.carddashboard {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 957px;
    box-shadow: 0 20px 40px rgba(48, 47, 47, 0.3);
    color: #121111;
}



/* ================= TOP BLUE BAR ================= */

.top-bar {
    background: #4f6fa3;
    /* Blue like screenshot */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    font-size: 18px;
}

.top-left span {
    margin-right: 20px;
}

.top-left i {
    margin-right: 6px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-right a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.top-right i {
    font-size: 14px;
}

.logout-btn {
    background: #dc3545;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* ================= MAIN WHITE NAVBAR ================= */

.main-navbar {
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 34px;
}

/* Menu */

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}

.nav-menu li a:hover {
    color: #e91e63;
}

/* Icons */

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 18px;
    color: #222;
    cursor: pointer;
}

.fa-brands {
    color: rgb(250, 247, 247);
}

.bulk-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* LEFT SIDE */
.bulk-left {
    flex: 1;

    padding: 30px;
    border-radius: 10px;
}

.bulk-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.bulk-left h3 {
    margin-bottom: 15px;
    color: #4f6fa3 emphasized;
}

.bulk-left ul {
    list-style: none;
    padding: 0;
}

.bulk-left ul li {
    margin-bottom: 12px;
    font-size: 15px;
}

/* RIGHT SIDE */
.bulk-form {
    flex: 1.2;
}

/* Form Styling */
.form-group {
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.form-group a {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #4f6fa3;
    text-decoration: none;
}

.btn {

    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
}


.button {

    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;

    cursor: pointer;
    font-size: 15px;
}


.btnn {

    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;

    cursor: pointer;
    font-size: 15px;
}


select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}


/* Card */
.cardd {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 500px;
    height: 1173px;
    max-width: 957px;
    box-shadow: 0 20px 40px rgba(48, 47, 47, 0.3);
    color: #121111;
}


/* Remove old form-group flex column rule if exists */

.product-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
}

.product-img {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

.product-details {
    flex: 2;
}

.product-details h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.product-details a {
    font-size: 13px;
    color: #4f6fa3;
    text-decoration: none;
}

.product-qty {
    width: 90px;
}

.product-qty input {
    width: 70px;
    padding: 3px;
    text-align: center;
}

.product-price {
    width: 90px;
    font-weight: 600;
    text-align: right;
}

.sub-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.sub-text a {
    color: #e91e63;
    /* keep your theme color */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sub-text a:hover {
    text-decoration: underline;
    color: #c2185b;
    /* slightly darker on hover */
}


.dashboard-container {

    padding: 40px;

    box-shadow: 0 20px 40px rgba(48, 47, 47, 0.3);
    color: #121111;
    min-height: 900px;
}

.cart-wrapper {
    width: 400px;
    background: #fff;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}


.checkout-btn {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

/* Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

/* Side Cart */
.side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.side-cart.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    cursor: pointer;
    font-size: 20px;
}

.cart-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    margin-top: 80px;
}

.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
}

/* ------------------------------------------------------------------------------ */
/* profile css */

/* RIGHT HEADER ICONS */

.nav-icons {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* EACH ICON BLOCK */

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    position: relative;
}

/* ICON AREA */

.icon-top {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ICON SIZE */

.icon-top i {
    font-size: 18px;
}

/* TEXT BELOW ICON */

.icon-box span {
    margin-top: 4px;
}

/* CART COUNT BADGE */

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #c19a4a;
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

/* PROFILE AVATAR */

.profile-avatar {
    width: 26px;
    height: 26px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* PROFILE DROPDOWN */

.profile-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 140px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

/* DROPDOWN ITEMS */

.dropdown-item {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-user {
    padding: 10px 14px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.logout-link {
    text-decoration: none;
    color: #d9534f;
    font-weight: 500;
}

.logout-link:hover {
    color: #c9302c;
}

.dropdown-item:hover {
    background: #f8f8f8;
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

/* logout style */

.logout-link {
    color: #d9534f;
    font-weight: 500;
}

.logout-link:hover {
    color: #c9302c;
}

.tracking-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 80px;
}

.step .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step p {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 0;
}

/* Completed steps - grey tick */
.step.done .circle {
    background: #aaa;
    color: white;
}

/* Current step - green dot */
.step.current .circle {
    background: #28a745;
    color: white;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.25);
}

.step.current p {
    color: #28a745;
    font-weight: bold;
}