@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primary-dark: #092635;
  --primary: #1B4242;
  --primary-medium: #5C8374;
  --primary-light: #9EC8B9;
  --accent-light: #ECFAE5;
  --accent-extreme-medium-light: #F7FFF8;
  --accent-extreme-light: #fbfffc;
  --accent-medium: #DDF6D2;
  --accent: #CAE8BD;
  --accent-dark: #B0DB9C;
  --black: #000;
  --white: #fff;
}

* {
  font-family: 'Roboto', sans-serif;
}

a, button {
    cursor: pointer;
}

.sh-modal-full{
    background-color: rgba(0, 0, 0, 0.5);
}

.header-auth-btn {
  background: var(--primary);
  color: var(--white);
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.header-auth-btn:hover {
  background: var(--primary-dark);
  color: var(--accent-light);
}

.header-auth-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.header-auth-btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.header-menu-link {
  color: var(--primary-medium);
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-menu-link:hover {
  color: var(--primary-dark);
}

.header-brand {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .header-menu,
  .header-auth {
    display: none;
  }
  .header-mobile-menu {
    display: block !important;
  }
}

.header-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80vw;
  max-width: 320px;
  background: var(--white);
  box-shadow: -2px 0 16px rgba(0,0,0,0.08);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  padding-top: 4rem;
}
.header-mobile-menu.open {
  display: block;
  transform: translateX(0);
}

.header-mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9,38,53,0.3);
  z-index: 99;
}
.header-mobile-backdrop.open {
  display: block;
}

.header-mobile-link {
  color: var(--primary-medium);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: background 0.2s, color 0.2s;
}
.header-mobile-link:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
}

.header-mobile-auth-btn {
  margin-top: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .header-mobile-menu, .header-mobile-backdrop {
    display: none !important;
  }
}

/* Sidebar Active States */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--primary-medium);
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-link:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
}

.sidebar-link.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(27, 66, 66, 0.15);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent-medium);
  border-radius: 0 2px 2px 0;
}

.sidebar-link.active i {
  color: var(--accent-light) !important;
}

/* Form Enhancements */
.form-grid {
    display: grid;
    gap: 2rem;
}

.form-section {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-preview-card {
    background: var(--accent-light);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--accent-medium);
}

.stats-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.stats-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.stats-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.danger-zone {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
}

.danger-zone-title {
    color: #991b1b;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Notification System */
.notification-card {
    min-width: 320px;
    max-width: 400px;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification-info {
    border-left-color: #3b82f6;
}

.notification-content {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.notification-success .notification-icon {
    background: #d1fae5;
    color: #059669;
}

.notification-error .notification-icon {
    background: #fee2e2;
    color: #dc2626;
}

.notification-warning .notification-icon {
    background: #fef3c7;
    color: #d97706;
}

.notification-info .notification-icon {
    background: #dbeafe;
    color: #2563eb;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-dark);
    margin-bottom: 0.125rem;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--primary-medium);
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-close {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: none;
    color: var(--primary-medium);
    cursor: pointer;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.notification-close:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
}

.notification-progress {
    height: 3px;
    background: var(--accent-light);
    position: relative;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    transition: width 4s linear;
    position: absolute;
    top: 0;
    left: 0;
}

.notification-success .notification-progress-bar {
    background: #10b981;
}

.notification-error .notification-progress-bar {
    background: #ef4444;
}

.notification-warning .notification-progress-bar {
    background: #f59e0b;
}

.notification-info .notification-progress-bar {
    background: #3b82f6;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-card.show {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-card.hide {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Page Enhancements */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--accent-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(27, 66, 66, 0.15), 0 10px 10px -5px rgba(92, 131, 116, 0.1);
    border-color: var(--primary-light);
}

.category-filter-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.category-filter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(27, 66, 66, 0.1);
}

.category-filter-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(27, 66, 66, 0.2);
}

.category-filter-item.active .category-icon {
    color: var(--white);
}

.hero-search-container {
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-search-container input:focus {
    box-shadow: 0 0 0 3px rgba(236, 250, 229, 0.5);
}

.price-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.stats-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(27, 66, 66, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--accent-medium);
}

.stats-card:hover {
    box-shadow: 0 10px 15px -3px rgba(27, 66, 66, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.booking-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-extreme-light) 100%);
    border: 1px solid var(--accent-medium);
}

.booking-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    color: var(--white);
}

.booking-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(27, 66, 66, 0.3);
}


.technician-btn{
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-medium) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    color: var(--primary-dark);
}

.technician-btn:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(27, 66, 66, 0.3);
}

.feature-badge {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: var(--primary-dark);
    animation: pulse-green 2s infinite;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(202, 232, 189, 0.4);
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.breadcrumb-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-medium);
}

.breadcrumb-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.service-detail-image {
    background: linear-gradient(135deg, var(--accent-extreme-light) 0%, var(--accent-light) 50%, var(--accent-medium) 100%);
}

.related-service-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-extreme-light) 100%);
    border: 1px solid var(--accent-medium);
}

/* Enhanced search input styling */
.search-input-enhanced {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--accent-medium);
    background: var(--accent-extreme-light);
}

.search-input-enhanced:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 66, 66, 0.1);
    transform: translateY(-1px);
}

/* Sort button enhancements */
.sort-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--accent-light);
    color: var(--primary-medium);
    border: 1px solid var(--accent-medium);
}

.sort-btn:hover {
    background: var(--accent-medium);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.sort-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(27, 66, 66, 0.2);
}

/* Page background */
.service-page-bg {
    background: linear-gradient(135deg, var(--accent-exteerme-light) 0%, var(--white) 100%);
    min-height: 100vh;
}

/* Custom shadows with theme colors */
.theme-shadow {
    box-shadow: 0 4px 6px -1px rgba(27, 66, 66, 0.1), 0 2px 4px -1px rgba(92, 131, 116, 0.06);
}

.theme-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(27, 66, 66, 0.1), 0 4px 6px -2px rgba(92, 131, 116, 0.05);
}

.theme-shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(27, 66, 66, 0.1), 0 10px 10px -5px rgba(92, 131, 116, 0.04);
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .category-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading animations */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

/* Custom scrollbar for webkit browsers */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Enhanced form controls */
.form-input-enhanced {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input-enhanced:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
}

.filter-apply-btn {
  background: var(--accent-light);
  color: var(--primary-medium);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.filter-apply-btn:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px 0 rgba(30, 80, 60, 0.08);
}
.filter-apply-btn:active {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 1px 4px 0 rgba(30, 80, 60, 0.10);
}

/* Mobile Optimizations for Technician Panel */
@media (max-width: 640px) {
  /* Better touch targets */
  .stats-card {
    padding: 0.75rem !important;
  }
  
  /* Improved button sizes for mobile */
  button, .btn {
    min-height: 44px;
    font-size: 0.875rem;
  }
  
  /* Better spacing for cards */
  .work-card {
    margin-bottom: 0.75rem;
  }
  
  /* Improved text sizing for readability */
  .text-xs {
    font-size: 0.75rem !important;
  }
  
  /* Better modal sizing on mobile */
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
  
  /* Improved search input */
  input[type="text"], input[type="search"], select {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
  }
  
  /* Better sidebar on mobile */
  .mobile-sidebar {
    touch-action: pan-y;
  }
  
  /* Improved spacing for mobile */
  .space-y-3 > * + * {
    margin-top: 0.5rem !important;
  }
  
  /* Better card padding on mobile */
  .border {
    border-width: 1px;
    border-radius: 0.5rem;
  }
    /* Ensure proper text wrapping */
  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Improve button tap feedback */
  button:active, .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Touch-friendly improvements for all screen sizes */
.touch-target {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Improved focus states for accessibility */
button:focus, input:focus, select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Better loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* Line clamp utilities for blog */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog specific styles */
.blog-content {
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    background: var(--accent-light);
    padding: 1rem;
    border-radius: 0.5rem;
}

.vote-button {
    transition: all 0.2s ease;
}

.vote-button:hover {
    transform: translateY(-2px);
}

.vote-button.voted {
    background: var(--primary);
    color: white;
}