/* --- Dashboard Main Page Styles --- */

.bg-soft-light {
    background-color: #f8f9f6;
    /* Very soft greenish-cream off-white */
}

/* Sidebar Avatar */
.dash-avatar-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #e2efe0;
    color: var(--clr-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vertical Nav Links */
.dash-v-link {
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dash-v-link:hover {
    color: var(--clr-primary-green);
    background-color: #f0fdf4;
}

.dash-v-link.active {
    background-color: #e4f2e1;
    /* Soft green active pill */
    color: var(--clr-primary-dark);
    font-weight: 600;
}

/* Header Banner */
.dash-header-banner {
    background-color: #f7f9f2;
    border: 1px solid rgba(27, 94, 32, 0.05);
}

/* Quick Stat Boxes */
.bg-soft-green {
    background-color: #e6f3e4;
}

.bg-soft-yellow {
    background-color: #fef6d8;
}

.stat-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Order Tracker Progress Bar */
.order-tracker-wrapper::before {
    content: '';
    position: absolute;
    top: 29px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #e5e7eb;
    /* Default light grey track line */
    z-index: 0;
}

/* Completed track segment overlay */
.order-tracker-wrapper::after {
    content: '';
    position: absolute;
    top: 29px;
    left: 10%;
    width: var(--tracker-progress, 0%);
    height: 2px;
    background-color: var(--clr-primary-dark);
    z-index: 0;
}

.tracker-step {
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-node {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.tracker-step.completed .step-node {
    background-color: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
    color: #ffffff;
}

.step-title {
    font-size: 0.8rem;
}

.step-date {
    font-size: 0.7rem;
}

/* Custom Table Styles */
.custom-dash-table th {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
}

.custom-dash-table td {
    font-size: 0.85rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #f9fafb;
}

.table-item-thumbs img {
    object-fit: contain;
    background-color: #fafafa;
}

/* Status Badges */
.badge-status {
    padding: 0.35em 0.85em;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-status-delivered {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.badge-status-shipped {
    background-color: #fff8e1;
    color: #b78103;
}

.badge-status-processing {
    background-color: #e8f4fd;
    color: #1976d2;
}

/* View Details Outline Button */
.btn-outline-dash-details {
    border: 1px solid #d1d5db;
    color: var(--clr-primary-dark);
    background-color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-dash-details:hover {
    background-color: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
    color: #ffffff;
}

/* Arrow Hover Effect */
.dash-arrow-hover i {
    transition: transform 0.3s ease;
}

.dash-arrow-hover:hover i {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 767px) {

    .order-tracker-wrapper::before,
    .order-tracker-wrapper::after {
        display: none;
        /* Hide horizontal connecting line on tiny screens */
    }

    .tracker-step {
        margin-bottom: 1rem;
    }
}







/* --- My Orders Table Section --- */

.bg-light-gray {
    background-color: #f9fafb !important;
}

/* Custom Table Scrollbar for Webkit */
.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Table Base Styling */
.my-orders-table th {
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eaeaea;
    white-space: nowrap;
}

.my-orders-table td {
    font-size: 0.9rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

/* Remove bottom border from last row */
.my-orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* Item Thumbnails */
.table-item-thumbs img {
    object-fit: contain;
    transition: transform 0.3s ease;
}

.table-item-thumbs img:hover {
    transform: scale(1.1);
}

/* Status Badges */
.order-badge {
    padding: 0.4em 1em;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.3px;
}

.badge-delivered {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.badge-shipped {
    background-color: #fff8e1;
    color: #b78103;
}

.badge-processing {
    background-color: #e8f4fd;
    color: #1976d2;
}

.badge-cancelled {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Action Button */
.btn-outline-action {
    border: 1px solid var(--clr-primary-dark);
    color: var(--clr-primary-dark);
    background-color: transparent;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-outline-action:hover {
    background-color: var(--clr-primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(27, 94, 32, 0.15);
}

.btn-outline-action i {
    transition: transform 0.3s ease;
}

.btn-outline-action:hover i {
    transform: scale(1.1);
}





/* --- Wishlist Table Section --- */

.wishlist-table th {
    color: #374151;
    /* Slightly darker gray for header */
    font-size: 0.85rem;
    font-weight: 600;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eaeaea;
    white-space: nowrap;
}

.wishlist-table td {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

/* Remove bottom border from last row */
.wishlist-table tbody tr:last-child td {
    border-bottom: none;
}

/* Product Thumbnail */
.wishlist-item-img {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stock Badges */
.stock-badge {
    padding: 0.4em 1em;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-in-stock {
    background-color: #eaf1e6;
    /* Soft green */
    color: #2b8a22;
    /* Primary green text */
}

/* Action Buttons */
.btn-outline-cart {
    border: 1px solid var(--clr-primary-dark);
    color: var(--clr-primary-dark);
    background-color: #ffffff;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-outline-cart:hover {
    background-color: var(--clr-primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(17, 66, 33, 0.15);
}

.btn-outline-remove {
    border: 1px solid #fca5a5; 
    color: #ef4444; 
    background-color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-outline-remove:hover {
    background-color: #fef2f2; 
    border-color: #ef4444;
    color: #dc2626;
}










/* --- Account Details Section --- */

/* Custom Inputs */
.custom-account-input {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.9rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.custom-account-input:focus {
    border-color: var(--clr-primary-green);
    box-shadow: 0 0 0 0.25rem rgba(27, 94, 32, 0.1);
}

.pointer-events-none {
    pointer-events: none;
}

/* Phone Input Group Adjustments */
.custom-phone-group {
    border-radius: 6px;
}

.custom-phone-group .btn {
    border-color: #e5e7eb;
    font-size: 0.9rem;
}

.custom-phone-group .btn:hover,
.custom-phone-group .btn:focus {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

.custom-phone-group .form-control:focus {
    border-color: var(--clr-primary-green);
    box-shadow: none; /* Removed inner shadow for cleaner look with groups */
}
.custom-phone-group:focus-within {
    border-radius: 6px;
    box-shadow: 0 0 0 0.25rem rgba(27, 94, 32, 0.1);
}

/* Custom Radio Buttons */
.custom-radio .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid #d1d5db;
    cursor: pointer;
}

.custom-radio .form-check-input:checked {
    background-color: var(--clr-primary-dark); /* Matches the dark green in the design */
    border-color: var(--clr-primary-dark);
}

.custom-radio .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 46, 23, 0.25);
}

.custom-radio label {
    cursor: pointer;
}

/* Custom Switches */
.custom-switch {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    padding-left: 0;
}

.custom-switch .form-check-input {
    width: 2.2rem;
    height: 1.2rem;
    margin-left: 0;
    margin-top: 0;
    background-color: #e5e7eb;
    border: none;
    cursor: pointer;
}

.custom-switch .form-check-input:checked {
    background-color: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
}

.custom-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 46, 23, 0.25);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Save Button Hover */
.btn-primary-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(11, 46, 23, 0.15) !important;
}







/* --- Change Password Section --- */

.custom-password-input {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.custom-password-input:focus {
    border-color: var(--clr-primary-green);
    box-shadow: 0 0 0 0.25rem rgba(27, 94, 32, 0.1);
}

.custom-password-input::placeholder {
    letter-spacing: 2px; /* Spaces out the placeholder dots */
    color: #9ca3af;
}

/* Visibility Toggle */
.toggle-password {
    transition: color 0.3s ease;
}
.toggle-password:hover {
    color: var(--clr-primary-green) !important;
}

/* Password Strength Indicator */
.strength-bar {
    height: 4px;
    background-color: #e5e7eb;
    transition: background-color 0.4s ease;
}

/* Validation Checklist Rules */
.rule-icon {
    color: #d1d5db; /* Default empty gray circle */
    transition: all 0.3s ease;
}
.rule-icon.valid {
    color: #15803d; /* Filled dark green checkmark */
}

/* Alert Box */
.security-alert {
    background-color: #f4f8f1; /* Very soft green */
    border: 1px solid rgba(27, 94, 32, 0.05);
}

.security-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}