:root {
  --primary-color: #4c6ef5;
  --primary-dark: #007bb8;
  --secondary-color: #748ffc;
  --bg-light: #f9fafb;
  --card-bg: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  
  /* Status kleuren */
  --status-toegewezen: #fd7e14;
  --status-in-uitvoering: #20c997;
  --status-afgerond: #198754;
  --status-niet-van-toepassing: #6c757d;
}

body {
  font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
}

.modern-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

.modern-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 2rem;
  margin-bottom: 2rem;
}

.modern-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modern-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modern-logo {
  max-width: 250px;
  margin: 0 auto 1.5rem;
}

.modern-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 1rem 0;
}

.modern-subtitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-light);
  padding: 1rem 1.5rem;
  border-radius: calc(var(--border-radius) / 2);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.task-item:hover {
  background-color: rgba(0, 150, 221, 0.1);
}

.task-name {
  font-weight: 500;
  font-size: 1.1rem;
}

.task-dropdown {
  padding: 0.5rem 1rem;
  border-radius: calc(var(--border-radius) / 2);
  border: 1px solid #e2e8f0;
  background-color: var(--card-bg);
  font-size: 1rem;
  transition: var(--transition);
}

.task-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 150, 221, 0.2);
}

.btn-container {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--border-radius) / 2);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  flex: 3;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  flex: 1;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Overzicht pagina */
.terug-knop {
  position: fixed;
  top: 20px;
  right: 30px;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  border: none;
}

.terug-knop:hover {
  background-color: var(--primary-dark);
}

.overview-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.overview-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.overview-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.overview-list {
  flex: 1;
  overflow: auto;
}

.overview-item {
  padding: 1rem;
  border-radius: calc(var(--border-radius) / 2);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

.overview-item.day-task {
  background-color: rgba(0, 150, 221, 0.15);
}

.overview-item.regular-task {
  background-color: rgba(52, 211, 153, 0.15);
}

.employee-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: block;
}

.overview-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Instellingen pagina */
.settings-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  background-color: var(--secondary-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  border: none;
  display: flex;
  align-items: center;
}

.settings-btn:hover {
  background-color: #000000;
}

.settings-section {
  margin-bottom: 2rem;
}

.employee-item {
  background-color: var(--bg-light);
  padding: 0.75rem 1rem;
  border-radius: calc(var(--border-radius) / 2);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.employee-item:hover {
  background-color: rgba(0, 150, 221, 0.1);
}

.remove-btn {
  color: #ef4444;
  font-weight: bold;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}

.remove-btn:hover {
  color: #dc2626;
}

/* Modal styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #1f2937;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

/* Taakstatus styling */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.status-toegewezen {
  background-color: var(--status-toegewezen);
  color: white;
}

.status-in-uitvoering {
  background-color: var(--status-in-uitvoering);
  color: white;
}

.status-afgerond {
  background-color: var(--status-afgerond);
  color: white;
}

.status-niet-van-toepassing {
  background-color: var(--status-niet-van-toepassing);
  color: white;
}

/* Aanbevelingsindicatoren */
.task-recommendation {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.recommend-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  margin-left: 0.25rem;
}

.recommend-good {
  background-color: #10b981; /* groen */
}

.recommend-avoid {
  background-color: #ef4444; /* rood */
}

.task-history-tooltip {
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #27272a;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  z-index: 50;
  width: max-content;
  max-width: 300px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.task-item:hover .task-history-tooltip {
  opacity: 1;
  visibility: visible;
}

.task-history-item {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* Statistiekenpagina */
.statistics-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.filter-card {
  background-color: #f8f9ff;
}

.stats-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.employee-stats-card {
  background-color: #f9fafb;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.employee-stats-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.task-count-item {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th, .history-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.history-table th {
  font-weight: 600;
  background-color: #f9fafb;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
}

.btn-details {
  background-color: var(--primary-color);
}

.btn-details:hover {
  background-color: var(--primary-dark);
}

.history-details-container {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.history-assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.status-toggle-container {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.status-toggle-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  margin-left: 0.25rem;
  transition: var(--transition);
}

.status-toggle-btn.toegewezen {
  background-color: var(--status-toegewezen);
  color: white;
}

.status-toggle-btn.in-uitvoering {
  background-color: var(--status-in-uitvoering);
  color: white;
}

.status-toggle-btn.afgerond {
  background-color: var(--status-afgerond);
  color: white;
}

.status-toggle-btn.niet-van-toepassing {
  background-color: var(--status-niet-van-toepassing);
  color: white;
}

/* Datum en tijd display */
.date-time-display {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 20;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
  .task-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .modern-title {
    font-size: 2rem;
  }
  
  .modern-subtitle {
    font-size: 1.5rem;
  }
  
  .btn-container {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .terug-knop, .settings-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    top: 10px;
    right: 10px;
  }
  
  .date-time-display {
    position: static;
    margin: 1rem auto;
    text-align: center;
    width: fit-content;
  }
  
  .history-assignment-grid {
    grid-template-columns: 1fr;
  }
}

/* Tabs in instellingen */
.tab-button {
  @apply px-4 py-2 font-medium text-gray-500 border-b-2 border-transparent hover:text-blue-600 hover:border-blue-600;
  transition: all 0.2s ease;
}

.tab-button.active-tab {
  @apply text-blue-600 border-blue-600;
}

.tab-content {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.tab-content.hidden {
  display: none;
}

/* Instellingenkaarten */
.employee-item {
  transition: all 0.2s ease;
}

.employee-item:hover {
  background-color: #f9fafb;
}

.delete-btn {
  @apply text-gray-400 hover:text-red-500;
  transition: all 0.2s ease;
}

/* Legenda-items */
.bg-green-100 {
  background-color: rgba(209, 250, 229, 0.8);
}

.bg-red-100 {
  background-color: rgba(254, 226, 226, 0.8);
}

/* Takenhistorie tooltip */
.task-history-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem;
  width: 220px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.task-item:hover .task-history-tooltip {
  display: block;
}

/* Datum en tijd display */
.date-time-display {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  z-index: 10;
}

/* Statistieken knop */
.stats-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.stats-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

@media (max-width: 768px) {
  .date-time-display {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: calc(100% - 2rem);
    margin: 0.5rem auto;
    text-align: center;
  }
  
  .stats-btn, .settings-btn {
    position: relative;
    display: inline-flex;
    width: calc(50% - 1rem);
    margin: 0.5rem;
    justify-content: center;
  }
}

/* TV-scherm specifieke stijlen */
@media screen and (min-width: 1920px) {
    /* Stijlen voor grote schermen */
    :root {
        font-size: 18px;
    }
    
    .tv-display {
        max-width: 100%;
        padding: 3rem;
    }
    
    .tv-title {
        font-size: 3.5rem;
    }
    
    .tv-card-title {
        font-size: 2.5rem;
    }
    
    .tv-item {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .tv-task-name {
        font-size: 1.6rem;
    }
    
    .tv-employee {
        font-size: 1.6rem;
    }
    
    .tv-status {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
    }
}

/* TV-ready animaties voor status updates */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tv-item {
    animation: fadeIn 0.5s ease-in;
}

/* Highlighting voor status wijzigingen */
.tv-status-in-uitvoering {
    position: relative;
    overflow: hidden;
}

.tv-status-in-uitvoering::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

/* Extra duidelijke en grotere status badges voor TV-weergave */
.tv-status {
    display: inline-block;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
} 