/* Primary color variable */
:root {
    --primary-color: #C72C48;
}

html {
    font-size: 16px;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
}

/* Main content should expand to push footer down */
main[role="main"],
.container-fluid.px-0 {
    flex: 1 0 auto;
}

.btn {
    font-weight: 500;
    border-radius: 1.375rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.badge {
    font-weight: 500;
    border-radius: 1.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Only style .btn-primary, not .btn */
.btn-primary,
.btn-primary:visited {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #a81f39 !important;
    border-color: #a81f39 !important;
    color: #fff !important;
}

.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
    background-color: #89192e !important;
    border-color: #89192e !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.show>.btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: #89192e;
    border-color: #89192e;
}

.form-control,
.form-select {
    border-color: var(--primary-color);
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem var(--primary-color);
}

.form-check-input[type="checkbox"],
.form-check-input[type="radio"] {
    accent-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(199, 44, 72, 0.25);
    border-color: var(--primary-color);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
}

.card {
    border-radius: 1.375rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-top-left-radius: 1.375rem;
    border-top-right-radius: 1.375rem;
}

.card-body {
    padding: 1.5rem;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.text-danger {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Additional utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

.fw-500 {
    font-weight: 500;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Navigation enhancements */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link:hover {
    color: yellow !important;
    font-weight: 600;
}

/* Button outline primary override */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(199, 44, 72, 0.5);
}

.btn-outline-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== REDESIGNED BOOTSTRAP ALERTS ===== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 2px 0 0 2px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-success::before {
    background-color: #198754;
}

.alert-success .alert-heading {
    color: #0a4024;
    font-weight: 600;
}

.alert-success .btn-close {
    /* Make the close button a solid success-colored round button with a white X */
    background-color: #198754 !important;
    /* bootstrap success */
    color: #fff !important;
    width: 15px;
    height: 15px;
    padding: 0;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
    opacity: 1;
    /* Remove Bootstrap's SVG background-icon so we can render a clean text X */
    background-image: none !important;
}

/* Render a white X for the close button (keeps it accessible) */
.alert-success .btn-close::after {
    content: '×';
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-danger::before {
    background-color: #dc3545;
}

.alert-danger .alert-heading {
    color: #58151c;
    font-weight: 600;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #664d03;
    border-left: 4px solid #ffc107;
}

.alert-warning::before {
    background-color: #ffc107;
}

.alert-warning .alert-heading {
    color: #523902;
    font-weight: 600;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #055160;
    border-left: 4px solid #0dcaf0;
}

.alert-info::before {
    background-color: #0dcaf0;
}

.alert-info .alert-heading {
    color: #033a45;
    font-weight: 600;
}

/* Alert icons */
.alert-success .bi,
.alert-danger .bi,
.alert-warning .bi,
.alert-info .bi {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    vertical-align: text-top;
}

/* Alert animations */
.alert {
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dismissible alert enhancement */
.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* Primary themed alert for brand consistency */
.alert-primary {
    background: linear-gradient(135deg, #f8d7dd 0%, #f1c2c9 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert-primary::before {
    background-color: var(--primary-color);
}

.alert-primary .alert-heading {
    color: #89192e;
    font-weight: 600;
}

/* Ensure all alerts are rounded */
.alert,
.alert-dismissible,
.alert-success,
.alert-danger,
.alert-warning,
.alert-info,
.alert-primary {
    border-radius: 1rem !important;
}

/* Profile specific styles */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(199, 44, 72, 0.2);
}

.profile-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-upload-btn:hover {
    background-color: #a81f39;
    transform: scale(1.1);
}

.profile-upload-btn i {
    color: white;
    font-size: 14px;
}

.profile-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(199, 44, 72, 0.1);
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8d7dd;
}

.dropdown-item:active,
.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #C72C48 !important;
    color: #fff !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* === Merged from breadcrumbs.css === */

:root {
    --primary-color: #C72C48;
}

.breadcrumb {
    background: transparent;
    padding: 0.4rem 0;
    margin-bottom: 1rem;
}

.breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(0, 0, 0, 0.35);
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    color: #a81f39;
    /* darker hover */
    text-decoration: underline;
}

.breadcrumb a:active {
    color: #89192e;
}

.breadcrumb .active {
    color: var(--primary-color);
    font-weight: 700;
}

.breadcrumb .bi {
    vertical-align: -0.125em;
    margin-right: 0.35rem;
    color: inherit;
}

/* Accessibility: visible focus outline for keyboard users */
.breadcrumb a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(199, 44, 72, 0.25);
    border-radius: 0.25rem;
}

/* === Merged from seller-overrides.css === */

/* Seller-specific overrides moved into site.css */
/* Vertically center the close (X) button inside dismissible alerts */
.alert-dismissible .btn-close {
    /* Position halfway and translate to center vertically */
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* Keep a little right spacing consistent with Bootstrap */
    right: 1rem !important;
}

/* Fallback for alerts that use flexbox: ensure the close button doesn't stretch */
.alert-dismissible {
    position: relative;
}

/* Floating Demo Button */
.demo-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #C72C48;
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(199, 44, 72, 0.3);
    pointer-events: none;
    user-select: none;
    font-family: "Poppins", sans-serif;
}