/* Modern Reset */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette - Merged from both CSS */
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    /* Emerald */
    --accent-color: #f59e0b;
    /* Amber */
    --dark-color: #1e293b;
    /* Dark Navy */
    --light-color: #f8fafc;
    /* Lightest Gray */
    --gray-color: #64748b;
    /* Slate */
    --danger-color: #ef4444;
    /* Red */

    /* Font sizes with responsive scaling */
    --fs-heading: clamp(1.75rem, 5vw, 2.5rem);
    --fs-subheading: clamp(1.2rem, 3vw, 1.5rem);
    --fs-body: clamp(0.875rem, 2vw, 1rem);
    --fs-small: clamp(0.95rem, 1.5vw, 0.875rem);

    /* Spacing */
    --section-padding: clamp(3rem, 6vw, 5rem) 0;
    --card-padding: clamp(1.25rem, 3vw, 2rem);
    --border-radius: 12px;
}

/* Base Styles */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.bg-primary-dark {
    background: var(--primary-dark);
}

/* Enhanced Navigation */
.navbar {
    padding: 5px 0;
    background-color: white;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    width: 150px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: var(--fs-body);
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.navbar-nav {
    column-gap: 0.5rem;
}

/* Hero Section */
.hero {
    background: -webkit-gradient(linear, left top, right top, from(#1e3a8a), to(#1e56d2));
    background: linear-gradient(to right, #1e3a8a, #1e56d2);
    color: white;
    padding: var(--section-padding);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: var(--fs-heading);
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: var(--fs-subheading);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}


.search-box input {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-size: var(--fs-body);
}

.custom-select-wrapper {
    position: relative;
    flex: 1;
}

.choices__inner,
.custom-select {
    width: 100% !important;
    padding: 0.8rem 2.5rem 0.6rem 3rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-size: var(--fs-body) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
}

.choices__list--single {
    padding: 3px 10px 0px 0px !important;
    height: 26px;
    overflow: hidden;
}

.choices__list--single .choices__item{
    text-align:left;
}

.choices__list--dropdown, .choices__list[aria-expanded]{
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-top:0 !important;
    background-color: #fff !important;
    color:#000 !important;
}

.choices__list{
    text-align:left;
}


.custom-select-wrapper .choices{
    margin:0 !important;
}

.custom-select-wrapper 
.choices[data-type*=select-one]::after{
    display:none !important;
}

.custom-select-wrapper 
.choices .choices__input{
    border-radius:0 !important;
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.2);
}

.custom-select option {
    color: var(--dark-color);
}

.custom-select-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: white;
    opacity: 0.7;
    line-height: 1;
}

.custom-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: white;
    pointer-events: none;
}

.search-box .btn {
    font-size: var(--fs-body);
    padding: 1rem 1.5rem;
}

/* Filter Section */
.filter-section {
    padding: 1rem 0;
    background-color: var(--light-color);
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: var(--fs-small);
    font-weight: 600;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    background-color: var(--primary-color);
    color: white;
}

.filter-pill.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-pill i {
    font-size: 1rem;
}

/* Section Styling */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: 0 1rem;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.2;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: var(--fs-small);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-description {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
    font-size: var(--fs-body);
}



/* Trust Badges */
.trust-badges {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.trust-badges .badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-small);
}

/* Tool Cards */
.tools-section {
    background-color: white;
}

.tool-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    height: 100%;
    -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}



.tool-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.tool-card h5 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: var(--fs-body);
}

.tool-link {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    gap: 0.5rem;
    font-size: var(--fs-body);
}

/* Deal Cards */
.deal-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.deal-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.remove-compare-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 0 !important;
    z-index: 5;
    border: 0;
    outline: 0;
    background: white;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
}

.remove-compare-btn i {
    line-height: 1.1;
    font-size: 26px;
}

.deal-image-container {
    height: 280px;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
    background-color: #f1f1f1;
}

.deal-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
}

.deal-card:hover .deal-image {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.deal-details {
    padding: 1.5rem;
}

.deal-details h5 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.price {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: var(--fs-small);
    color: var(--gray-color);
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.details span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.25rem;
}

.features {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--fs-small);
    color: var(--gray-color);
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.details i,
.features i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.list-group-item {
    font-size: var(--fs-body);
    color: var(--gray-color);
    padding: 0.5rem 0;
    border: none;
}

/* VIN Details Section */
.vin-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(237px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vin-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.vin-detail-item:hover {
    background-color: rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.vin-detail-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.vin-detail-item span {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--dark-color);
    line-height: 1.2;
}

.vin-detail-item strong {
    font-weight: 700;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--dark-color);
    margin-right: 0.25rem;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-item {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s;
    line-height: 1.2;
}

.spec-item:hover {
    background: #e9ecef;
}

.spec-item i {
    margin-right: 8px;
    color: #007bff;
    font-size: 1.1rem;
}

.spec-item strong {
    color: #555;
    margin-right: 5px;
}

/* CTA Section */
.cta-section {
    background: -webkit-gradient(linear, left top, right top, from(#1e293b), to(#334155));
    background: linear-gradient(to right, #1e293b, #334155);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: var(--fs-heading);
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    font-size: var(--fs-subheading);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Ad Banner */
.ad-banner {
    background-color: white;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ad-placeholder {
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.ad-content {
    max-width: 600px;
    margin: 0 auto;
}

.ad-content i {
    font-size: 2.5rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.ad-content h5 {
    font-size: var(--fs-subheading);
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.ad-content p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: var(--fs-body);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 0;
}

.footer-logo {
  width: 120px;
}

.footer ul {
  padding-left: 0;
  list-style: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Modern Testimonials Section */
.testimonial-section {
    background-color: #f8fafc;
    padding: var(--section-padding);
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: var(--fs-body);
    color: var(--dark-color);
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    padding-left: 0.5rem;
}

.testimonial-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: -15px;
    font-size: 3rem;
    color: rgba(37, 99, 235, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.author-info h6 {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Testimonial Grid Layout */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.copyright {
    opacity: 0.7;
    font-size: var(--fs-small);
}

.legal-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-small);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

hr {
    opacity: 0.1;
    margin: 2rem 0;
}

.no-image {
    font-size: 2rem;
    text-align: center;
}

.no-image p {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 600;
}

.border-dashed {
    cursor: pointer;
    min-height: 400px;
    border-style: dashed !important;
}

.compare-model .modal-body.row {
    row-gap: 2rem;
}

/** 404 **/
.error-section {
    height: calc(100svh - 169px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-area {
    position: fixed;
    z-index: 99999;
    bottom: 2%;
    right: 2%;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-area.hide-alert {
    right: -100%;
}

/* login */
body.login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
}

.login-card {
    max-width: 480px;
    width: 100%;
}

/** dashboard **/
body.dashboard {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    display: flex;
    height: 100vh;
}

textarea#explainerBody{
    min-height:5rem;
    max-height:15rem;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: -webkit-gradient(linear, left top, right top, from(#1e293b), to(#334155));
    background: linear-gradient(to right, #1e293b, #334155);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar img {
    width: 130px;
    margin: 0 auto 2rem;
}

.sidebar .nav-link {
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background-color: var(--primary-light);
    color: #fff;
}

/* Main content */
.main-wrapper {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.main-wrapper h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-stat {
    background: white;
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card-stat h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-color);
}

.card-stat p {
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
}

/* Quick Actions */
.actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card-action {
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-action:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
    transform: translateY(-3px);
}

.card-action i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.card-action h6 {
    font-size: 1rem;
    margin: 0;
    color: var(--dark-color);
}

/* Reusable Dashboard Table */
.dashboard-table {
    background-color: white;
    padding: var(--card-padding);
    border-radius: var(--border-radius);
}

.dashboard-table table {
    margin-bottom: 0;
}

.dashboard-table th,
.dashboard-table td {
    vertical-align: middle;
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
    min-width: 100px;
}

.dashboard-table th {
    font-weight: 600;
}

.form-check-input {
    width: 3rem !important;
    height: 1.6rem;
    cursor: pointer;
}

.dashboard-table .badge {
    font-size: 14px;
    padding: 0.4em 0.6em;
    border-radius: 6px;
}

.pagination .page-item .page-link {
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    font-weight: 500;
    margin: 0 0.2rem;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    color: #fff;
}

.pagination .page-link:focus {
    box-shadow: none;
}

.scrollable-table {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}

table thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

body.dashboard .btn-sm {
    padding: 0.5rem 0.65rem;
    font-size: 1rem;
    line-height: 1;
    font-weight: 500;
}

.dashboard-search {
    flex: 1;
    max-width: 320px;
}

.dashboard-search input {
    height: 3rem;
}

.dashboard-toolbar .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

.dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-formWrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.upload-area {
    border: 2px dashed var(--gray-color, #ced4da);
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    cursor: pointer;
}

.upload-area:hover {
    background-color: #f1f3f5;
    border-color: var(--primary-color, #0d6efd);
}

.upload-area img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    border-radius: 6px;
}

.dashboard-formWrapper .form-label {
    font-weight: 500;
}

span.tox-statusbar__branding {
    display: none;
}

/** article **/
.article-img {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    object-fit: cover;
    width: 100%;
    object-position: center;
}

.fixed-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10;
}


input#tagInput {
    outline: 0 !important;
}


.line-clamp-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Responsive Adjustments */
@media (max-width: 1300px) {
    .modal-xl {
        max-width: 90% !important;
        margin-inline: auto;
    }
}

@media (min-width: 992px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 10px;
    }

    .navbar .navbar-collapse {
        position: absolute;
        left: 0;
        top: 89%;
        width: 100%;
        background: white;
    }

    body.dashboard {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .search-box {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 120px;
    }

    .filter-pills {
        justify-content: flex-start !important;
    }

    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    .testimonial-text::before {
        top: -10px;
        font-size: 2.5rem;
    }

    .footer-bottom {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .search-box {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .footer .row>div {
        margin-bottom: 2rem;
    }

    .deal-card {
        margin-bottom: 1rem;
    }

    .login-card {
        max-width: 90%;
    }

    .dashboard-formWrapper {
        padding: 1.5rem;
    }

    .main-wrapper h1 {
        font-size: 1.5rem;
    }

    .main-wrapper {
        padding: 2rem 1rem;
    }

    .actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .dashboard-toolbar {
        flex-direction: column;
    }

    .dashboard-search {
        max-width: 100%;
        width: 100%;
    }

    .dashboard-toolbar .btn-primary {
        width: 100%;
    }

    .scrollable-table {
        height: 100%;
        max-height: 587px;
    }

    .card-stat h4 {
        font-size: 0.91rem;
    }

    .card-action h6 {
        font-size: 0.85rem;
    }
}