/* CSS Variables */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #171717;
  --card: #ffffff;
  --card-foreground: #171717;
  --primary: #0066cc;
  --primary-foreground: #ffffff;
  --secondary: #f3f4f6;
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #f97316;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --radius: 0.625rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--muted-foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background-color: #0052a3;
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--secondary);
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-outline-white:hover:not(:disabled) {
  background-color: white;
  color: var(--primary);
}

.btn-ghost:focus,
.btn-ghost:active,
.btn-ghost:visited {
    background-color: transparent; /* ingen baggrundsfarve */
    color: var(--foreground);      /* fasthold standard farve */
    outline: none;                 /* fjern blå outline */
    box-shadow: none;              /* fjern evt. fokus skygge */
}

/* Sikrer at ikoner i btn-icon ikke ændrer farve ved klik/fokus */
.btn-icon i {
    color: var(--foreground);
}

/* Optional: let hover effekt uden at ændre farver på klik */
.btn-ghost:hover:not(:disabled) {
    background-color: var(--secondary);
}

.btn-link {
  background-color: transparent;
  border-color: transparent;
  color: var(--primary);
  text-decoration: underline;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link-active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-order-btn {
  display: none;
}

@media (min-width: 640px) {
  .nav-order-btn {
    display: flex;
  }
}

.nav-phone-btn {
  display: flex;
}

@media (min-width: 768px) {
  .nav-phone-btn {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(249, 115, 22, 0.05));
  padding: 5rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  width: fit-content;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: #fbbf24;
}

.rating-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-image {
  position: relative;
}

.hero-img {
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 25rem;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.badge-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-icon {
  font-size: 2rem;
}

.badge-title {
  font-weight: 600;
}

.badge-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Trust Section */
.trust-section {
  padding: 3rem 0;
  background-color: white;
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.trust-icon {
  font-size: 2rem;
}

.trust-title {
  font-weight: 600;
}

.trust-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.service-description {
  color: var(--muted-foreground);
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

/* Urgency Section */
.urgency-section {
  padding: 4rem 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.urgency-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.urgency-title {
  font-size: 2rem;
  font-weight: bold;
}

@media (min-width: 1024px) {
  .urgency-title {
    font-size: 2.25rem;
  }
}

.urgency-description {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 32rem;
  margin: 0 auto;
}

.urgency-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .urgency-actions {
    flex-direction: row;
  }
}

.urgency-counter {
  font-size: 1.125rem;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  font-size: 3rem;
  display: flex;
  justify-content: center;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-description {
  color: var(--muted-foreground);
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-rating {
  color: #fbbf24;
}

.testimonial-text {
  color: var(--muted-foreground);
  font-style: italic;
}

.author-name {
  font-weight: 600;
}

.author-location {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Final CTA Section */
.final-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-align: center;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cta-title {
  font-size: 2rem;
  font-weight: bold;
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-description {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* Order Page */
.order-container {
  min-height: 100vh;
  background-color: var(--background);
  padding: 2rem 0;
}

.order-header {
  margin-bottom: 2rem;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
}

.back-link:hover {
  color: var(--foreground);
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .page-title h1 {
    font-size: 2.5rem;
  }
}

.page-title p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

.window-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .window-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .window-types-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.window-card {
  position: relative;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
}

.window-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.window-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.window-card-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.window-card-header {
  text-align: center;
  margin-bottom: 1rem;
}

.window-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.window-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.window-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  min-height: 3rem;
}

.window-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.window-price {
  text-align: center;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.price-unit {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover:not(:disabled) {
  background-color: var(--secondary);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-display {
  width: 3rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.window-total {
  text-align: center;
  padding: 0.5rem;
  background-color: rgba(0, 102, 204, 0.05);
  border-radius: var(--radius);
}

.total-price {
  font-weight: 600;
}

.total-calculation {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.price-summary {
  background-color: rgba(0, 102, 204, 0.05);
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .summary-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.summary-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.summary-price {
  text-align: right;
}

.total-amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
}

.price-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.summary-action {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 102, 204, 0.2);
}

.info-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--background);
}

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

.login-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.login-content {
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-benefits {
  margin-top: 2rem;
}

.login-benefits h3 {
  font-weight: 500;
  margin-bottom: 1rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefit-icon {
  font-size: 1.25rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.login-link {
  color: var(--primary);
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.back-button:hover {
  color: var(--foreground);
}

.resend-section {
  text-align: center;
  margin-top: 1.5rem;
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--input-background);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* OTP Input */
.otp-input-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.otp-input {
  width: 3rem;
  height: 3rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  transition: all 0.2s;
}

.otp-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.otp-input.filled {
  border-color: var(--primary);
  background: rgba(0, 102, 204, 0.05);
}

.otp-input.error {
  border-color: var(--destructive);
  background: rgba(212, 24, 61, 0.05);
}

/* Admin Pages Styles */
.admin-container {
  min-height: 100vh;
  background-color: var(--background);
  padding: 2rem 0;
}

.admin-nav {
  background-color: white;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.admin-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-nav-links {
  display: flex;
  gap: 2rem;
}

.admin-nav-link {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--primary);
  background-color: rgba(0, 102, 204, 0.1);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 2rem;
  font-weight: 600;
}

.admin-subtitle {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Cards */
.card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  padding: 1.5rem;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 600;
  background-color: var(--secondary);
}

.table tr:hover {
  background-color: rgba(0, 102, 204, 0.05);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary);
  color: white;
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-success {
  background-color: #22c55e;
  color: white;
}

.badge-warning {
  background-color: var(--accent);
  color: white;
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

/* Search and Filters */
.search-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
}

.filter-select {
  min-width: 150px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Property/Service Cards */
.entity-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.entity-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.entity-card-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.entity-card-actions {
  display: flex;
  gap: 0.5rem;
}

.entity-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entity-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Customer Detail Layout */
.customer-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .customer-detail {
    grid-template-columns: 1fr;
  }
}

.property-section {
  margin-bottom: 3rem;
}

.property-card {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.property-header {
  background-color: rgba(0, 102, 204, 0.05);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.property-content {
  padding: 1.5rem;
}

.history-card {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.history-header {
  background-color: rgba(0, 102, 204, 0.05);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.history-content {
  padding: 1.5rem;
}

.services-appointments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .services-appointments {
    grid-template-columns: 1fr;
  }
}

.service-item,
.appointment-item {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Form Styles */
.form-section {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Stats Sidebar */
.stats-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status Indicators */
.status-active {
  color: #22c55e;
}

.status-inactive {
  color: var(--muted-foreground);
}

.status-completed {
  color: #22c55e;
}

.status-pending {
  color: var(--accent);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-foreground);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .hero-buttons,
  .urgency-actions,
  .cta-buttons {
    flex-direction: column;
  }

  .admin-nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-filters {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
  }
}

#address-results {
    list-style: none; /* Fjerner bullets */
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.address-item {
    padding: 10px 15px;
    margin: 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    list-style: none; /* sikrer at bullets ikke vises på li */
}

.address-item:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.btn-full {
    display: flex;
    align-items: center; /* lodret centreret */
    justify-content: center; /* centrerer teksten */
    gap: 0.5rem; /* afstand mellem ikon og tekst */
    position: relative;
}

.btn-full i {
    position: absolute;   /* fixerer ikonens position */
    left: 1rem;           /* fast afstand fra venstre kant */
}

.modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }


.modal-overlay.show {
    display: flex;
}

/* Modal */
.modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Modal header */
.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.modal-description {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}

/* Modal body */
.modal-body {
    padding: 24px;
}

/* Warning box */
.warning-box {
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-text {
    font-size: 14px;
    color: #856404;
}

/* Security verification box */
.security-box {
    padding: 16px;
    background-color: rgba(108, 117, 125, 0.05);
    border: 2px dashed rgba(108, 117, 125, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
}

.security-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 600;
