html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  padding-top: 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  padding-bottom: 120px;
  position: relative;
  min-height: calc(100vh - 200px);
}

/* Login and Register pages specific styling */
main .container.mt-5.pt-5 {
  padding-bottom: 80px;
  min-height: calc(100vh - 300px);
}

/* Authentication pages (Login, Register) */
body[data-page*="Account"] main {
  padding-bottom: 150px;
  min-height: calc(100vh - 250px);
}

/* Specific fix for login page */
.container.mt-5.pt-5 {
  margin-bottom: 100px;
}

/* Ensure login form has proper spacing */
.container.mt-5.pt-5 .card {
  margin-bottom: 50px;
}

/* Products page specific styling */
body[data-page*="Products"] main {
  padding-bottom: 150px;
  min-height: calc(100vh - 250px);
}

/* Products page container spacing */
body[data-page*="Products"] .container-fluid {
  padding-bottom: 100px;
  margin-bottom: 50px;
}

/* Products sidebar spacing */
body[data-page*="Products"] .sidebar-categories {
  margin-bottom: 50px;
}

/* Products items section spacing */
body[data-page*="Products"] .items-section {
  margin-bottom: 50px;
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

/* Additional spacing for pages with tables */
.table-responsive {
  margin-bottom: 20px;
}

.card {
  margin-bottom: 20px;
}

/* Ensure proper spacing for admin pages */
.container-fluid {
  padding-bottom: 50px;
}

/* General Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/IndexImage.jpg');
    background-color: var(--primary-color); /* Fallback color */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0 160px 0;
    background-color: var(--light-bg);
    margin-bottom: 80px;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
    align-items: stretch;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    flex: 1;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-form form {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group:last-of-type:not(:last-child) {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
    margin-top: auto;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-group textarea {
    flex: 1;
    min-height: 120px;
    resize: none;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.submit-button {
    margin-top: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #c0392b;
}

.map-container {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 200px;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

/* Service Page Styles */
.service-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/service-hero.jpg');
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-hero .lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-content {
    padding: 4rem 0;
    padding-bottom: 15rem;
}

.service-content h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.service-content h3 {
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.service-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.service-list h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.service-list p {
    margin: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.step p {
    margin: 0;
    font-size: 0.9rem;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.service-sidebar .contact-card,
.service-sidebar .materials-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.service-sidebar h3 {
    color: var(--primary-color);
    margin: 0 0 20px 0;
}

.service-sidebar p {
    margin-bottom: 20px;
}

.service-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.service-sidebar li:last-child {
    border-bottom: none;
}

@media (max-width: 991px) {
    .service-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-hero .lead {
        font-size: 1.2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.image-gallery {
    margin-top: 2rem;
}

.image-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .image-gallery img {
        height: 250px;
    }
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.shop-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.shop-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.shop-section .image-gallery img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.shop-section .image-gallery img:hover {
    transform: scale(1.02);
}

.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.testimonials-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-card.mt-4 {
    margin-top: 2rem;
}

.testimonial-content {
    text-align: center;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author .recommendation {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

.shop-showcase {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.shop-showcase .image-gallery {
    margin: 0;
}

.shop-showcase .image-gallery img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.shop-showcase .image-gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .shop-showcase {
        padding: 40px 0;
    }
}