﻿:root {
    --primary-color: #1e293b;
    /* Lightened Slate-Navy */
    --secondary-color: #475569;
    /* Softer Slate */
    --accent-color: #2563eb;
    /* Professional Blue */
    --text-color: #64748b;
    /* Slate 500 */
    --heading-color: #1e293b;
    /* Slate 800 */
    --light-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(30, 41, 59, 0.08);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-primary {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

/* Navbar Enhancements */
.navbar-custom {
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    /* Bold Logo */
    font-size: 1.5rem;
    color: #000000;
    /* Black */
    letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand img {
    height: 60px !important;
    transition: all 0.3s ease;
}

.text-accent {
    color: var(--accent-color) !important;
}

.navbar-custom .nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    font-size: 0.85rem;
    /* Smaller, crisp text */
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent-color) !important;
}

letter-spacing: 0.5px;
margin-left: 2rem;
/* More spacing */
position: relative;
padding-right: 0 !important;
padding-left: 0 !important;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #000000 !important;
    /* Active black */
}

/* Remove the underline effect */
.navbar-custom .nav-link::after {
    display: none;
}

/* Hero Section Enhancement */
.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

/* Login Page Specifics */
.login-split-screen {
    min-height: 100vh;
    display: flex;
}

.login-left {
    flex: 1;
    background: url('/img/carousel-1.jpg') center/cover no-repeat;
    /* Fallback or dynamic */
    position: relative;
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 992px) {
    .login-left {
        display: block;
    }
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--card-bg);
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

/* Footer Customization */
.footer-custom {
    background-color: var(--dark-bg);
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-custom a:hover {
    color: #fff;
}

/* --- Uniform Image Format Utility --- */
.u-product-format {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 8px;
}

.u-product-format img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
}

/* Image Wrapper Refinement */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-image-wrapper img,
.product-image-wrapper .carousel-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain;
    margin: auto;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    min-height: 2.4em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-action {
    margin-top: auto;
    width: 100%;
}

.btn-inquire {
    width: 100%;
    border-radius: 6px;
    padding: 12px 0;
    text-transform: capitalize;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    background-color: #5578b8;
    color: #fff !important;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(114, 150, 216, 0.2);
}

.btn-inquire:hover {
    background-color: #4363a0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(114, 150, 216, 0.3);
}

.search-container .input-group {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    background: #fff;
    padding: 5px;
}

.search-container input {
    border: none;
    font-size: 1rem;
    padding: 12px 20px;
}

.search-container .btn {
    border-radius: 40px;
    padding: 10px 30px;
}

/* RESPONSIVE DESIGN - MEDIA QUERIES */
@media (max-width: 991px) {
    .product-image-wrapper {
        height: auto;
        aspect-ratio: 1/1;
    }
}

@media (max-width: 767px) {
    .product-image-wrapper {
        height: auto;
        aspect-ratio: 1/1;
    }

    .product-card {
        margin-bottom: 20px;
    }

    /* Global fixes */
    .page-header {
        margin-bottom: 3rem !important;
        padding: 3rem 0 !important;
    }
}


/* --- Premium Inquiry Form Styles --- */
.inquiry-form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.inquiry-form-card:hover {
    transform: translateY(-5px);
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #5578b8;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(85, 120, 184, 0.2), transparent);
    margin-left: 15px;
}

.inquiry-form-card .form-floating>.form-control,
.inquiry-form-card .form-floating>.form-select {
    border-radius: 10px;
    border: 1px solid #e1e8f0;
    padding-left: 1.25rem;
    transition: all 0.3s ease;
}

.inquiry-form-card .form-floating>.form-control:focus,
.inquiry-form-card .form-floating>.form-select:focus {
    border-color: #5578b8;
    box-shadow: 0 0 0 4px rgba(85, 120, 184, 0.1);
}

.inquiry-form-card .form-floating>label {
    padding-left: 1.25rem;
    color: #6c757d;
}

.inquiry-form-card .btn-submit-quote {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.inquiry-form-card .btn-submit-quote:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .inquiry-form-card {
        padding: 1.5rem;
    }
}


/* --- Admin Dashboard Specific Utilities --- */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.table-premium thead {
    background-color: #f8fafc;
}

.table-premium th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 1rem 1.5rem;
    border-top: none;
}

.table-premium td {
    padding: 1rem 1.5rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* Hero Section Redesign */
.hero-section {
    position: relative;
    padding: 160px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-content .highlight {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.badge-soft-success {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.badge-soft-secondary {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    text-decoration: none;
}

.btn-action-icon:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.btn-action-icon.edit:hover {
    color: #3b82f6;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.btn-action-icon.delete:hover {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
}


/* Page Header & Breadcrumbs */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('../img/carousel-1.jpg') center center no-repeat;
    background-size: cover;
    padding: 100px 0;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-item.active {
    color: #ffffff;
}

/* Form Styling - Professional Import/Export */
.form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-info-card {
    background: var(--primary-color);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    height: 100%;
}

.rounded-16 {
    border-radius: 16px !important;
}

.rounded-12 {
    border-radius: 12px !important;
}

.rounded-8 {
    border-radius: 8px !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

/* --- Inquiry Specific Styles --- */
.badge-soft-info {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.badge-soft-warning {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.inquiry-id-badge {
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
}


/* --- Premium Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.premium-toast {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.premium-toast.show {
    transform: translateX(0);
}

.premium-toast .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-toast.success .icon {
    background: #dcfce7;
    color: #166534;
}

.premium-toast.error .icon {
    background: #fef2f2;
    color: #991b1b;
}

.premium-toast .content {
    flex-grow: 1;
}

.premium-toast .title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.premium-toast .message {
    color: #64748b;
    font-size: 0.8rem;
}

.premium-toast .close-btn {
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.premium-toast .close-btn:hover {
    color: #475569;
}


/* --- Premium Confirmation Dialog --- */
.premium-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-dialog-overlay.show {
    display: flex;
    opacity: 1;
}

.premium-dialog {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.premium-dialog-overlay.show .premium-dialog {
    transform: scale(1);
}

.premium-dialog .icon {
    width: 64px;
    height: 64px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.premium-dialog .title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.premium-dialog .message {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.premium-dialog .actions {
    display: flex;
    gap: 12px;
}

.premium-dialog .actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.premium-dialog .btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: none;
}

.premium-dialog .btn-cancel:hover {
    background: #e2e8f0;
}

.premium-dialog .btn-confirm {
    background: #dc2626;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.premium-dialog .btn-confirm:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}