* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
  -webkit-tap-highlight-color: rgba(0,40,76,0.1);
}

body {
  background-color: #f5f7fa;
  color: #2d3748;
  line-height: 1.6;
  padding-top: 120px;
}

.top-bar {
  background-color: #00284c;
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-selector, .user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.language-selector select {
  background: transparent;
  color: white;
  border: none;
  cursor: pointer;
}

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

header {
  background-color: white;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #00284c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #00284c;
}

.breadcrumbs {
  margin-bottom: 20px;
  color: #666;
}

.breadcrumbs a {
  color: #00284c;
  text-decoration: none;
}

.factuur-container {
  max-width: 800px;
  margin: 0 auto;
}

.factuur-card {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf2f7;
}

h2 {
  color: #00284c;
  font-size: 24px;
}

.status-badge {
  background-color: #ffd700;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.info-row {
  display: flex;
  flex-direction: column;
}

.label {
  color: #666;
  font-size: 14px;
}

.value {
  font-weight: 600;
  color: #2d3748;
  margin-top: 4px;
}

.urgent-date {
  color: #cc0000;
  font-weight: 700;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: #fff3f3;
}

.description-box {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.description-box h3 {
  color: #00284c;
  margin-bottom: 10px;
}

.description-box p {
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 10px;
}

.factuur-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
}

.amount-section {
  display: flex;
  flex-direction: column;
}

.amount-label {
  color: #666;
  font-size: 14px;
}

.amount-value {
  font-size: 28px;
  font-weight: bold;
  color: #00284c;
  margin: 5px 0;
}

.due-date {
  color: #666;
  font-size: 14px;
}

.betaal-btn {
  background-color: #00284c;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.betaal-btn:hover {
  background-color: #001f3d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,40,76,0.2);
}

.betaal-btn:active {
  transform: scale(0.98);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.close:hover {
  color: #000;
}

.payment-options {
  margin-top: 30px;
}

.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.belastingdienst-logo {
  max-width: 300px;
  height: auto;
  display: block;
}

.logo {
  padding: 10px 0;
}

.ideal-logo {
  background-color: transparent;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.ideal-image {
  max-width: 120px;
  height: auto;
}

.logo-text {
  display: none;
}

.ideal-text {
  display: none;
}

.ideal-btn {
  background-color: #00284c;
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.ideal-btn:hover {
  background-color: #001f3d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,40,76,0.2);
}

.ideal-btn:active {
  transform: scale(0.98);
}

.payment-description {
  color: #666;
  text-align: center;
}

.chat-link {
  color: #00284c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background-color: #e8f0f7;
  border-radius: 4px;
  transition: all 0.3s;
}

.chat-link:hover {
  background-color: #d1e2f2;
  text-decoration: none;
}

.chat-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.reason-box {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #00284c;
}

.reason-box h3 {
  color: #00284c;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reason-box p {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
}

.header-hidden {
  transform: translateY(-100%);
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 10px 15px;
  }

  .language-selector, .user-menu {
    justify-content: center;
  }

  header {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    margin-bottom: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    transition: transform 0.3s ease;
    border-radius: 0;
  }

  .logo {
    align-self: flex-start;  
    padding-left: 5px;  
  }

  .belastingdienst-logo {
    max-width: 200px;
    height: auto;
    margin-left: 0;  
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .factuur-card {
    padding: 20px;
    margin: 0 10px;
    border-radius: 8px;
  }

  .card-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding-bottom: 15px;
  }
  
  .info-section {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: left;
    padding: 0 5px;
  }

  .reason-box {
    margin: 15px 0;
    padding: 15px;
  }
  
  .description-box {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .factuur-details {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 20px 15px;
    position: sticky;
    bottom: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    margin: 0 -20px -20px -20px;
    border-radius: 0 0 12px 12px;
  }
  
  .amount-section {
    align-items: center;
  }

  .amount-value {
    font-size: 24px;
    margin: 8px 0;
  }

  .betaal-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 24px;
    justify-content: center;
  }

  .modal-content {
    margin: 10vh auto;
    padding: 20px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
  }

  .chat-link {
    display: inline-flex;
    padding: 6px 12px;
    margin: 5px 0;
  }

  .chat-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .breadcrumbs {
    font-size: 13px;
    padding: 0 5px;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .amount-value {
    font-size: 22px;
  }

  .modal-content {
    padding: 15px;
    margin: 5vh auto;
  }

  .ideal-btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .reason-box h3 {
    font-size: 16px;
  }

  .reason-box p {
    font-size: 13px;
  }

  .description-box h3 {
    font-size: 16px;
  }

  .description-box p {
    font-size: 13px;
  }
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Improve touch targets */
button, 
a, 
select {
  min-height: 44px;
  min-width: 44px;
}

/* Optimize images for mobile */
img {
  max-width: 100%;
  height: auto;
}