*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

html{
    font-family: 'Roboto', sans-serif;
}

body{
  background-color: rgb(245, 245, 245);
}

h1{
    background-image: linear-gradient(to right, #b91c1c, 80% , #ef4444);
    background-clip: text;
    color: transparent; 
    font-size: 1.5rem;   
}

header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 2px solid #ddd;
    background-color: white;
}
header button{
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.hamburger { 
    display: none; 
    font-size: 1.5rem; 
}

nav{
    width: 250px; /* Fixed width */
    min-width: 250px;
    height: 100vh; /* changed to vh for consistency */
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background-color: white;
    padding-top: 1rem;
}

.listItem {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #4b5563;
    padding: 0.9rem 1.5rem;
    margin: 4px 12px;
    width: auto;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}
a{
    text-decoration: none;
}

.listItem:hover {
    background-color: #fef2f2;
    color: #dc2626;
    transform: none; /* Removed scale for cleaner nav */
}

.listItem.active {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
    font-weight: 600;
    transform: none;
}

main{
    display: flex;
    height: 100vh;
    overflow: hidden; /* handle scroll in main area */
}

.searchHeader{
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 350px;
    transition: all 0.2s ease;
}

.searchHeader:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.searchHeader input{
    border: none;
    background: transparent;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 0.95rem;
    color: #334155;
    font-weight: normal;
}

.logboekMain{
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;

.logboek-entries {
  display: flex;
  flex-direction: column-reverse;
}
    background-color: #f8fafc; /* Softer background */
}

.ondertitel{
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.Entry{
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); /* Red Gradient */
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
  transition: all 0.2s ease;
}

.Entry:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.splits{
    display: flex;
    justify-content: space-between;
    align-items: center; /* Better vertical alignment */
    margin-bottom: 1rem;
}

.splits > div {
    display: flex;
    gap: 10px;
}

.container {
    margin-top: 1.5rem;
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f1f5f9; /* Subtle border */
    max-width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    font-family: 'Roboto', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-color: #e2e8f0;
}

.container h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.container h4 {
  margin-bottom: 10px;
  font-size: 14px;
}

.filter-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
}

.search-input,
.dropdown,
.filter-button {
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fff;
  color: #334155;
  transition: all 0.2s ease;
}

.search-input {
  flex: 1;
  max-width: 300px;
}

.search-input:focus,
.dropdown:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.filter-button {
  background-color: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #475569;
  font-weight: 500;
}

.filter-button:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.filter-icon {
  margin-right: 6px;
}

.log-titel{
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed #e2e8f0; /* added separation */
}

.log-titel h2{
  margin-right: 5px;
  font-size: 1rem;
  background-color: #fee2e2; /* Light red */
  color: #dc2626; /* Red */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.log-titel h3 {
    margin: 0;
    font-size: 1.2rem;
}

.log-categorie{
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 20px;
  color: #b91c1c; /* Dark red */
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-datum-uur{
  display: flex;
  color: #64748b;
  font-size: 0.85rem;
  gap: 24px; /* More spacing */
  margin-bottom: 16px;
  align-items: center;
}

.log-datum-uur p i {
    margin-right: 6px;
    color: #94a3b8;
}

.log-text {
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1rem;
}

.log-flex-tags{
  display: flex;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.tag{
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 9999px; /* Pill shape */
  padding: 4px 12px;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
  transition: all 0.2s;
}

.tag:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.icon-button {
  background: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  padding: 8px;
  border-radius: 8px;
  color: #94a3b8;
  transition: all 0.2s ease-in-out;
}

.icon-button:hover {
  transform: scale(1.05);
  background-color: #fef2f2;
  color: #dc2626; /* Red */
}

.icon-button i.fa-trash {
    transition: color 0.2s;
}

@media screen and (max-width: 768px) {
    .hamburger { display: block; }

    nav {
        position: absolute;
        left: -100%;
        top: 70px;
        width: 100%;
        z-index: 1000;
        transition: 0.3s ease;
        height: calc(100vh - 70px);
        border-right: none;
    }
    nav.nav-active { left: 0; }
    
    .searchHeader { display: none; }
    
    .filter-controls { flex-direction: column; align-items: stretch; }
    .splits { flex-direction: column; gap: 10px; }
    .log-datum-uur { flex-wrap: wrap; gap: 10px; }
}
