html {
    scroll-behavior: smooth;
    /* -webkit-font-smoothing: antialiased; */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #004d4d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Main Wrapper */
.license-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 400px; /* Prevents layout from becoming too wide */
    margin: 0 auto;
    padding: 20px;
}

/* License Plate Input */
.license-input-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.license-plate-input {
    border: 3px solid #000;
    background-color: rgb(244, 190, 4);
    background-image: url('https://wettelijkegarantie.nl/wp-content/uploads/2022/12/KentekenBG.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    padding: 0px 5px 0px 40px;
    font-size: 28px; /* Adjusted for mobile */
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    width: 100%; /* Make it responsive */
    max-width: 162px;
    box-shadow: 0px 0px 2px 1px rgba(255, 255, 255, 0.15);
    height: 55px;
    border-radius: 10px;
}

/* Focus effect */
.license-plate-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0px 0px 2px 5px rgba(255, 255, 255, 0.25);
}

/* Error state effect */
.license-plate-input.error {
    outline: none;
    border-color: #d80a0a; /* Red border for error */
    box-shadow: 0px 0px 2px 5px rgba(255, 0, 0, 0.5); /* Red glow effect */
}

/* Animation Text */
.animation-container {
    height: 20px;
    font-size: 24px;
    font-family: monospace;
    margin-bottom: 20px;
    white-space: pre;
}

/* Tab Container */
.tab-container {
    display: flex;
    flex-wrap: wrap; /* Ensures buttons don't overflow */
    justify-content: center;
    gap: 5px; /* Adds spacing */
    margin-bottom: 10px;
    width: 100%;
    max-width: 360px;
}

/* Tabs */
.tab {
    background-color: #ddd;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    flex: 1; /* Makes them evenly spaced */
    min-width: 80px;
    max-width: 120px;
}

.tab.active {
    background-color: #ffcc00;
    border: 1px solid #ff9900;
}

/* Buttons */
button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #004d4d;
    border: none;
    cursor: pointer;
    width: 100%; /* Ensures buttons don't overflow */
    max-width: 250px;
}

button:hover {
    background-color: #003333;
}

/* Auto Data Display */
.rdw-container {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 5px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    /* padding: 2px; */
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    /* letter-spacing: normal !important;
    word-spacing: normal !important; */
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 14px;
}

th {
    background-color: #ffcc00;
    position: sticky;
    top: -1px;
    font-weight: bold;
    text-align: left;
}

/* Scrollable Table */
.scrollable-table {
    max-height: 228px;
    overflow-y: auto;
    padding-top: 0px;
    background: #fff;
}

/* Custom Scrollbar for WebKit browsers */
.scrollable-table::-webkit-scrollbar {
    width: 10px;
}

/* Track (background of the scrollbar) */
.scrollable-table::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 5px;
}

/* Handle (the draggable part) */
.scrollable-table::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

/* Handle on hover */
.scrollable-table::-webkit-scrollbar-thumb:hover {
    background: #ff9900;
}

/* Scrollbar Styling for Firefox */
.scrollable-table {
    scrollbar-width: thin;
    scrollbar-color: #ffcc00 #f4f4f4;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .license-plate-input {
        font-size: 24px;
        height: 50px;
    }

    .tab {
        padding: 8px;
        font-size: 12px;
    }

    button {
        font-size: 14px;
        padding: 8px;
        max-width: 100%;
    }
}
