/* ============================================
   GLOBAL BODY STYLES
   ============================================ */

/* Base body styling */
body {
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #1e293b;
}

/* ============================================
   Admin Dashboard - Minimal Custom Styles
   ============================================ */

/* Panel hover effects */
.panel {
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* Button hover effects for quick actions */
.btn-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #ccc;
}

/* Smooth link transitions */
a {
    transition: all 0.2s ease;
}

/* Table row hover enhancement */
.table-hover > tbody > tr:hover {
    background-color: #f5f5f5;
}

/* Responsive flex fix for older browsers */
@media (max-width: 767px) {
    [style*="display: flex"] {
        display: block !important;
    }

    [style*="flex:"] {
        width: 100% !important;
    }
}

/* ============================================
   REGISTRATION PAGE STYLING
   ============================================ */

/* Header Card */
.register-header-card .card-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.register-header-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerPulse 8s ease-in-out infinite;
}

.register-icon {
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.register-header-card h2,
.register-header-card p {
    position: relative;
    z-index: 1;
}

/* About Card */
.about-card {
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInLeft 0.6s ease-out;
}

/* Benefits Card */
.benefits-card {
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.benefits-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.benefits-list li {
    animation: fadeInUp 0.5s ease-out backwards;
}

.benefits-list li:nth-child(1) { animation-delay: 0.3s; }
.benefits-list li:nth-child(2) { animation-delay: 0.4s; }
.benefits-list li:nth-child(3) { animation-delay: 0.5s; }
.benefits-list li:nth-child(4) { animation-delay: 0.6s; }
.benefits-list li:nth-child(5) { animation-delay: 0.7s; }
.benefits-list li:nth-child(6) { animation-delay: 0.8s; }

/* Registration Form Card */
.registration-form-card {
    border-radius: 12px;
    animation: fadeInRight 0.6s ease-out;
}

.form-section {
    padding-bottom: 1.5rem;
}

.form-section:not(:last-child) {
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    color: #667eea;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

/* Form Controls */
.registration-form .form-control,
.registration-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    transition: all 0.3s ease;
}

.registration-form .form-control:focus,
.registration-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    background-color: #fafbff;
}

.registration-form .form-label {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

/* Submit Buttons */
.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.reset-btn {
    border: 2px solid #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes headerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .register-icon {
        font-size: 2.5rem;
    }

    .register-header-card h2 {
        font-size: 1.75rem;
    }

    .submit-btn,
    .reset-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .submit-btn {
        margin-right: 0 !important;
    }
}

/* ============================================
   LOGIN PAGE STYLING
   ============================================ */

/* Header Card */
.login-header-card .card-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-header-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerPulse 8s ease-in-out infinite;
}

.login-icon {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
}

.login-header-card h2,
.login-header-card p {
    position: relative;
    z-index: 1;
}

/* Why Login Card */
.why-login-card {
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInLeft 0.6s ease-out;
}

.why-login-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Register Promo Card */
.register-promo-card {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

/* Login Form Card */
.login-form-card {
    border-radius: 12px;
    animation: fadeInRight 0.6s ease-out;
}

.text-purple {
    color: #667eea;
}

/* Form Controls */
.login-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    background-color: #fafbff;
}

.login-form .form-label {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Remember Me Checkbox */
.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Forgot Password Link */
.forgot-password-link {
    color: #667eea;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #764ba2;
}

/* Login Button */
.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Register Link Button */
.register-link-btn {
    border: 2px solid #667eea;
    color: #667eea;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.register-link-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Register Text Link */
.register-text-link {
    color: #667eea;
    transition: color 0.3s ease;
}

.register-text-link:hover {
    color: #764ba2;
}

/* Divider */
.divider-text {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #dee2e6;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

.divider-text span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive for Login Page */
@media (max-width: 991.98px) {
    .login-icon {
        font-size: 2.5rem;
    }

    .login-header-card h2 {
        font-size: 1.75rem;
    }

    .register-promo-card {
        margin-top: 1.5rem !important;
    }
}

/* Register Promo Icon */
.register-promo-icon {
    font-size: 2.5rem;
    color: #667eea;
}

/* ============================================
   MAIN MENU STYLING
   ============================================ */

/* Main menu margin */
.main-menu-wrapper {
    margin-bottom: 5px;
    clear: both;
}

/* Desktop and Mobile visibility */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 991.98px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* Mega menu width overrides */
.mega-menu-narrow {
    width: 35% !important;
}

/* Ensure mega menu displays properly */
.mega-menu {
    z-index: 9999 !important;
    min-width: 600px !important;
}

.mega-menu-narrow {
    min-width: 250px !important;
}

/* Navigation positioning */
.navbar.desktop-only {
    position: relative !important;
    z-index: 1000 !important;
    margin-top:30px !important;
}

.navbar-nav {
    position: relative !important;
}

.navbar-nav > li {
    position: relative !important;
}

/* Accordion Products */
.accordion-products .accordion-content-products {
    display: none;
}

/* ===== HAMBURGER MENU STYLING ===== */

/* Hamburger Button */
.navbar-toggler {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon i {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-toggler.active .navbar-toggler-icon i {
    transform: rotate(90deg);
}

/* Mobile Menu Wrapper */
.mobile-menu-wrapper {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.mobile-menu-wrapper.show {
    display: block;
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Accordion Styling */
.mobile-menu-wrapper .accordion-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
}

.mobile-menu-wrapper .accordion-button {
    background: white;
    color: #333;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

.mobile-menu-wrapper .accordion-button:not(.collapsed) {
    background: #333333;
    color: white;
    box-shadow: none;
}

.mobile-menu-wrapper .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.mobile-menu-wrapper .accordion-button::after {
    filter: brightness(0);
}

.mobile-menu-wrapper .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Nested accordion styling */
.mobile-menu-wrapper .accordion-body {
    padding: 0.5rem;
}

.mobile-menu-wrapper .accordion-body ul li a {
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-wrapper .accordion-body ul li a:hover {
    background: rgba(51, 51, 51, 0.1);
    color: #333333;
    padding-left: 1rem !important;
}

/* Responsive - Show hamburger only on mobile */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
    .mobile-menu-wrapper {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
    }
}

/* ============================================
   LOGIN MODAL STYLING
   ============================================ */

#loginModal {
    max-width: 650px !important;
    width: 90% !important;
    margin: 0 auto;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.login-modal-container {
    padding: 2rem 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
}

/* Modal Background Pattern */
.login-modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.08;
    z-index: 0;
}

/* Login Header */
.login-header {
    position: relative;
    z-index: 1;
}

.login-header {
    margin-bottom: 1.5rem;
}

.login-header .login-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-icon 2.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.login-header h4 {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 0;
}

/* Form Styling (for modal) */
.login-modal-container .login-form {
    position: relative;
    z-index: 1;
}

.login-modal-container .login-form > div {
    margin-bottom: 1.25rem;
}

.login-modal-container .login-form .form-label {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-modal-container .login-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-modal-container .login-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.2);
    background-color: #fafbff;
    transform: translateY(-1px);
}

/* Remember Me Checkbox (for modal) */
.login-modal-container .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #dee2e6;
    cursor: pointer;
    margin-top: 0.125rem;
}

.login-modal-container .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.login-modal-container .form-check-label {
    margin-left: 0.625rem;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Forgot Password Link (for modal) */
.login-modal-container .forgot-password-link {
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-modal-container .forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login Button (for modal) */
.login-modal-container .login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-modal-container .login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-modal-container .login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-modal-container .login-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.login-modal-container .login-btn:active {
    transform: translateY(-1px);
}

/* Register Section */
.register-section {
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 2px solid #e9ecef;
}

.register-section p {
    font-size: 0.95rem;
    margin-bottom: 0.625rem;
}

.register-btn {
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.35);
}

/* Remove CakePHP default error styling */
.login-form .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive for Login Modal */
@media (max-width: 575.98px) {
    #loginModal {
        max-width: 95%;
    }

    .login-modal-container {
        padding: 2rem 1.5rem;
    }

    .login-header .login-icon {
        font-size: 3rem;
    }

    .login-header h4 {
        font-size: 1.5rem;
    }

    .login-header p {
        font-size: 0.9rem;
    }

    .login-modal-container .login-form .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .login-modal-container .login-btn,
    .register-btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .login-modal-container {
        padding: 2.5rem 2rem;
    }
}

/* ============================================
   DEFAULT LAYOUT STYLING
   ============================================ */

/* Body logged out state */
body.logged-out {
    position: relative;
    min-height: 100%;
    top: 0px;
}

/* Top grey bar */
#topGreyBar {
    background-color: #333333 !important;
    min-height: 80px;
    padding: 0 0 0.75rem 0;
}

#topGreyBar .container-fluid {
    min-height: 80px;
    padding-top: 0;
    padding-bottom: 0.75rem;
}

/* Main content container */
.main-content-container {
    margin-top: 0;
    padding-top: 0;
}

/* Left sidebar column */
.left-sidebar-column {
    margin-top: 0;
}

/* Breadcrumbs styling */
.breadcrumbs,
.breadcrumb {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0;
    background: transparent;
    font-size: 0.85rem;
}

/* Featured products section */
.featured-products-section {
    margin-top: 0;
}

.featured-products-section .card-header {
    padding: 0.75rem;
}

.featured-products-section .card-body {
    padding: 0.75rem;
}

.featured-products-section .card-footer {
    padding: 0.6rem;
}

/* ============================================
   LEFT SIDEBAR MENU - CONSISTENT FONT SIZE
   ============================================ */

/* Ensure all sidebar menu list items have consistent font size (0.9rem like home page) */
.category-menu .list-group-item,
.subcategory-menu .list-group-item,
.subsubcategory-menu .list-group-item,
.manufacturer-menu .list-group-item {
    font-size: 0.9rem !important;
}

/* Nested/dropdown items also maintain 0.9rem */
.rightSideDropdown .list-group-item {
    font-size: 0.9rem !important;
}

/* Contractor registration card (in sidebar) */
.contractor-registration-card {
    overflow: hidden;
}

.contractor-registration-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem;
}

.contractor-registration-card .card-body {
    padding: 0.75rem;
}

.contractor-briefcase-icon {
    font-size: 2.5rem;
    color: #667eea;
}

.contractor-register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   HOME LAYOUT STYLING
   ============================================ */

/* Banner Slider Styling - Redesigned */
.banner-slider-section {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1rem;
    overflow: visible;
    border-radius: 8px;
}

.banner-slider-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.homeSlider {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
}

.banner-slide {
    width: 100%;
    height: 100%;
}

.banner-slide a {
    display: block;
    line-height: 0;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 600px;
    transition: transform 0.4s ease, filter 0.3s ease;
    border-radius: 8px;
}

.banner-slide:hover .banner-image {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Pagination dots */
.pager {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.pager a {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pager a:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

.pager a.selected {
    background: #667eea;
    border-color: #667eea;
    width: 24px;
    border-radius: 10px;
    transform: scale(1);
}

/* Navigation arrows (if cycle plugin supports) */
.banner-slider-wrapper .prev,
.banner-slider-wrapper .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.banner-slider-wrapper .prev {
    left: 20px;
}

.banner-slider-wrapper .next {
    right: 20px;
}

.banner-slider-wrapper .prev:hover,
.banner-slider-wrapper .next:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments for banner slider */
@media (max-width: 991.98px) {
    .banner-image {
        max-height: 400px;
    }

    .pager {
        bottom: 15px;
        padding: 6px 12px;
    }

    .pager a {
        width: 8px;
        height: 8px;
    }

    .pager a.selected {
        width: 20px;
    }

    .banner-slider-wrapper .prev,
    .banner-slider-wrapper .next {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 767.98px) {
    .banner-slider-section {
        margin-bottom: 0.75rem;
    }

    .banner-image {
        max-height: 300px;
        border-radius: 6px;
    }

    .banner-slider-wrapper {
        border-radius: 6px;
    }

    .pager {
        bottom: 10px;
        padding: 4px 10px;
        gap: 6px;
    }

    .pager a {
        width: 7px;
        height: 7px;
        border-width: 1.5px;
    }

    .pager a.selected {
        width: 16px;
    }

    .banner-slider-wrapper .prev,
    .banner-slider-wrapper .next {
        width: 32px;
        height: 32px;
    }

    .banner-slider-wrapper .prev {
        left: 10px;
    }

    .banner-slider-wrapper .next {
        right: 10px;
    }
}

@media (max-width: 575.98px) {
    .banner-image {
        max-height: 250px;
    }

    .pager {
        bottom: 8px;
        padding: 3px 8px;
    }
}

/* ============================================
   PRODUCTS LISTING PAGE
   ============================================ */

/* Listing container */
.listing {
    margin-top: 20px;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

/* Product Detail Page Styling */
.product-header-card {
    margin-top: 20px;
}

.product-header-card .card-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-images-card,
.product-info-card,
.product-details-card,
.discontinued-card {
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.main-product-image {
    position: relative;
    overflow: hidden;
}

.main-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.main-product-image:hover .main-image {
    transform: scale(1.05);
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-link:hover .thumbnail-image {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.product-meta p {
    font-size: 0.95rem;
}

.add-to-cart-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.add-to-cart-section .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-to-cart-section .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.documents-section .btn,
.bulletins-section .btn {
    transition: all 0.3s ease;
}

.documents-section .btn:hover,
.bulletins-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
}

/* Email Link Modal */
.email-link-image {
    max-width: 300px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .product-images-card {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   LOGO CLICK BORDER FIX
   ============================================ */

/* Remove outline/border when logo is clicked */
.topLeftMenu a,
.topLeftMenu a:focus,
.topLeftMenu a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.topLeftMenu img {
    outline: none !important;
    border: none !important;
}

/* ============================================
   TOP RIGHT MENU STYLING
   ============================================ */

/* Remove old icon styles from main.css that create duplicates */
.topRightMenu a.logout-link::before,
.topRightMenu a.myaccount-link::before,
.topRightMenu a.masterpassword-link::before,
.topRightMenu a.shoppingcart-link::before,
.topRightMenu a.login-link::before {
    content: none !important;
    display: none !important;
}

/* Top menu navigation wrapper */
.topRightMenu {
    margin: 0;
    padding: 0;
}

.topRightMenu ul {
    margin: 0;
    padding: 0;
}

/* Top menu buttons - unified styling */
.top-menu-btn {
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    color:#FFFF99;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    margin: 0.5rem 0;
}

.top-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white !important;
}

.top-menu-btn:active {
    transform: translateY(0);
}

/* Master password button - special styling */
.masterpassword-link {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.masterpassword-link:hover {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

/* Cart badge */
.cart-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
    min-width: 1.25rem;
    height: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Language selector wrapper */
.language-selector-wrapper {
    display: inline-flex;
    align-items: center;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Responsive - Hide text on smaller screens, show only icons */
@media (max-width: 767.98px) {
    .topRightMenu ul {
        gap: 0.5rem !important;
    }

    .top-menu-btn {
        padding: 0.375rem 0.625rem !important;
        font-size: 0.8rem;
    }

    .cart-badge {
        font-size: 0.65rem;
        min-width: 1.1rem;
        height: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .topRightMenu ul {
        gap: 0.25rem !important;
    }

    .top-menu-btn {
        padding: 0.325rem 0.5rem !important;
    }
}

/* ============================================
   CARD COMPONENTS - GLOBAL STYLING
   ============================================ */

/* Base card styling */
.card {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    padding:5px;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Card header with white font */
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.6rem 0.9rem;
    border-bottom: none;
    font-weight: 600;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header p,
.card-header span,
.card-header a,
.card-header i {
    color: white;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: white !important;
}

.card-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Card body */
.card-body {
    padding: 0.75rem;
    background: white;
}

/* Card title */
.card-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

/* Card footer */
.card-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.6rem 0.9rem;
}

.card-footer.bg-light {
    background: #f8f9fa !important;
}

.card-footer.border-0 {
    border: none !important;
}

/* Card variants */
.card.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.card.shadow {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.card.border-0 {
    border: none !important;
}

.card.mb-3 {
    margin-bottom: 1rem !important;
}

.card.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Card with gradient backgrounds */
.card[style*="background: linear-gradient"] .card-body,
.card[style*="background: linear-gradient"] h5,
.card[style*="background: linear-gradient"] h6,
.card[style*="background: linear-gradient"] p,
.card[style*="background: linear-gradient"] li,
.card[style*="background: linear-gradient"] a,
.card[style*="background: linear-gradient"] span {
    color: white !important;
}

/* Card height utilities */
.card.h-100 {
    height: 100% !important;
}

/* Responsive card adjustments */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: 0.5rem 0.75rem;
    }
}

/* ============================================
   MODERN FOOTER STYLING
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    margin-top: 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Footer Gradient Border Top */
.site-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #4facfe 75%, 
        #667eea 100%
    );
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
}

/* Dark theme adjustments for footer content */
.site-footer .footer-heading {
    color: #f1f5f9;
}

.site-footer .footer-description {
    color: #cbd5e1;
}

.site-footer .footer-links a {
    color: #cbd5e1;
}

.site-footer .footer-links a:hover {
    color: #ffffff;
}

.site-footer .footer-links a i {
    color: #a78bfa;
}

.site-footer .footer-contact li {
    color: #cbd5e1;
}

.site-footer .footer-contact li i {
    color: #a78bfa;
}

.site-footer .footer-heading {
    border-bottom-color: rgba(167, 139, 250, 0.3);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .site-footer {
        margin-top: 1.5rem;
    }

    .footer-bottom {
        padding: 0.75rem;
        margin-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* ============================================
   THREE-COLUMN LAYOUT ENHANCEMENTS
   ============================================ */

/* Ensure content wrapper has no extra padding */
.content-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Main content container with proper spacing */
.main-content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Three-column grid - desktop */
.three-column-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 1rem;
    align-items: start;
    width: 100%;
}

/* Left Sidebar Styling */
.left-sidebar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.left-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Main Content Column */
.main-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 600px;
    overflow: hidden;
}

.content-inner {
    padding: 0;
}

.content-inner > .content {
    padding: 1rem;
}

/* Right Sidebar Styling */
.right-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.right-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.right-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-widgets .widget {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sidebar-widgets .widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

/* Responsive - Tablet */
@media (max-width: 1199px) {
    .three-column-layout {
        grid-template-columns: 250px 1fr 280px;
        gap: 0.75rem;
    }

    .main-content-container {
        padding: 0.75rem;
    }
}

/* Responsive - Small Tablet */
@media (max-width: 991px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .left-sidebar,
    .right-sidebar {
        position: static;
        max-height: none;
        order: 1;
    }

    .main-content {
        order: 2;
    }

    .right-sidebar {
        order: 3;
    }

    /* Stack order: Left sidebar -> Main content -> Right sidebar */
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .main-content-container {
        padding: 0.5rem;
    }

    .three-column-layout {
        gap: 0.75rem;
    }

    .left-sidebar,
    .main-content,
    .right-sidebar {
        border-radius: 6px;
    }

    .content-inner > .content {
        padding: 0.75rem;
    }
}

/* Ensure breadcrumbs fit nicely */
.breadcrumbs {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
}

/* Print mode - hide sidebars */
@media print {
    .left-sidebar,
    .right-sidebar {
        display: none !important;
    }

    .three-column-layout {
        grid-template-columns: 1fr !important;
    }

    .main-content {
        box-shadow: none;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE - MODERN STYLING
   ============================================ */

/* Product Header Card */
.product-header-card .card-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.product-header-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product Images Card */
.product-images-card {
    position: static;
    margin-bottom: 1.5rem;
}

.main-product-image {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.main-product-image:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.main-product-image img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.main-product-image:hover img {
    transform: scale(1.03);
}

/* Thumbnail Images */
.thumbnail-link {
    display: block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
}

.thumbnail-link:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-link:hover .thumbnail-image {
    transform: scale(1.05);
}

/* Product Info Card */
.product-info-card {
    border-left: 4px solid #667eea !important;
}

.product-info-card .card-body {
    background: linear-gradient(to bottom right, #ffffff 0%, #f8f9fa 100%);
}

/* Product Badges */
.product-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product Meta */
.product-meta p {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem !important;
    border-left: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-meta p:hover {
    border-left-color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
    transform: translateX(3px);
}

.product-meta .text-success {
    font-size: 1.75rem !important;
    color: #10b981 !important;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

/* Add to Cart Section */
.add-to-cart-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px dashed #dee2e6;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.add-to-cart-section:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.add-to-cart-section .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.add-to-cart-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.add-to-cart-section .form-control {
    border: 2px solid #dee2e6;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.add-to-cart-section .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Action Buttons */
.btn-outline-success,
.btn-outline-info {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Documents Section */
.documents-section h5,
.bulletins-section h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.documents-section .btn-outline-secondary,
.bulletins-section .btn-outline-info {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.documents-section .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.bulletins-section .btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 202, 240, 0.3);
}

/* Product Details Card */
.product-details-card .card-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    font-weight: 600;
}

.product-details-card .product-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
}

.product-details-card .product-description li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-details-card .product-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Discontinued Product Card */
.discontinued-card {
    border-left: 5px solid #fbbf24 !important;
}

.discontinued-card .alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: none;
    border-radius: 8px;
}

/* Modal Enhancements */
.modal-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .product-images-card {
        position: static;
        margin-bottom: 1.5rem;
    }

    .product-header-card h3 {
        font-size: 1.25rem;
    }

    .main-product-image img {
        max-height: 300px;
    }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767.98px) {
    .product-meta .text-success {
        font-size: 1.5rem !important;
    }

    .add-to-cart-section .d-flex {
        flex-direction: column !important;
    }

    .add-to-cart-section .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ============================================
   ADMIN PRODUCT CSV UPLOAD/EXPORT PAGES
   ============================================ */

/* Page background */
body.admin-csv-page {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Main cards */
.upload-card,
.export-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.export-card {
    max-width: 1000px;
}

.upload-card .card-header,
.export-card .card-header {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    padding: 2rem;
    border: none;
}

/* Upload area */
.upload-area {
    border: 3px dashed #008ace;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    background: #f0f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #0073a8;
    background: #e6f4ff;
    transform: translateY(-2px);
}

.upload-area.dragging {
    border-color: #0073a8;
    background: #d6eeff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: #008ace;
    margin-bottom: 1rem;
}

.file-input {
    display: none;
}

/* Buttons */
.btn-upload,
.btn-download {
    background: #008ace;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-upload:hover,
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 138, 206, 0.4);
    background: #0073a8;
    color: white;
}

.btn-download {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-download:hover {
    box-shadow: 0 10px 25px rgba(0, 138, 206, 0.4);
}

.btn-back.csv-back {
    background: #6c757d;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back.csv-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    background: #5a6268;
    color: white;
}

.btn-sample-download {
    background: #28a745;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-sample-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    background: #218838;
    color: white;
}

/* Results section */
.results-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-created { color: #28a745; }
.stat-updated { color: #17a2b8; }
.stat-errors { color: #dc3545; }

.error-messages {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.error-item {
    padding: 0.75rem;
    border-left: 3px solid #dc3545;
    background: #fff5f5;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

/* Instructions box */
.instructions,
.info-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #dee2e6;
}

.instruction-item,
.info-item {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
}

.instruction-item:last-child,
.info-item:last-child {
    margin-bottom: 0;
}

.instruction-item i,
.info-item i {
    color: #008ace;
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.2rem;
}

.info-item i {
    font-size: 1.1rem;
}

/* Selected file */
.selected-file {
    background: #e7f5ff;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: none;
    border: 2px solid #008ace;
}

.selected-file.active {
    display: block;
}

/* Filter and fields sections */
.filter-section,
.fields-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    color: #008ace;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #008ace;
}

.csv-form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.csv-form-label i {
    color: #008ace;
    margin-right: 0.5rem;
    width: 20px;
}

.csv-form-control,
.csv-form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.csv-form-control:focus,
.csv-form-select:focus {
    border-color: #008ace;
    box-shadow: 0 0 0 0.2rem rgba(0, 138, 206, 0.25);
}

.csv-form-check-input:checked {
    background-color: #008ace;
    border-color: #008ace;
}

.csv-form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 138, 206, 0.25);
}

/* Select all/clear all buttons */
.btn-select-all,
.btn-clear-all {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-select-all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-clear-all {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-select-all:hover,
.btn-clear-all:hover {
    transform: translateY(-2px);
    color: white;
}

/* Stats banner */
.stats-banner {
    background: #008ace;
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Field checkboxes */
.field-checkbox {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.field-checkbox:hover {
    border-color: #008ace;
    background: #f0f8ff;
}

.field-checkbox input:checked ~ label {
    color: #008ace;
    font-weight: 600;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}
