body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px; /* Keep existing margin */
}

h1 {
    color: #ffffff;
    text-align: center;
    font-weight: 300;
    margin-bottom: 24px; /* Added margin to match previous layout */
}

/* Styles for the main container */
.container {
    max-width: 64rem; /* Equivalent to max-w-4xl */
    margin-left: auto;
    margin-right: auto;
    background-color: #1e1e1e; /* Darker background for the container */
    padding: 32px; /* Equivalent to p-8 */
    border-radius: 8px; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
}


.inputField {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 10px;
    font-size: 16px;
    /* margin-bottom: 15px; Removed as it's part of flex/gap now */
    border-radius: 5px;
    flex-grow: 1; /* Added to make it fill space in flex container */
}
/* Placeholder color for the search input */
.inputField::placeholder {
    color: #a0a0a0; /* Slightly lighter placeholder */
}
.inputField:focus {
    border-color: #1a73e8; /* Highlight color on focus */
    outline: none;
}


.control {
    margin-bottom: 24px; /* Adjusted margin to match previous layout */
    display: flex;
    flex-direction: column; /* Default to column for small screens */
    gap: 16px; /* Space between items */
}

@media (min-width: 640px) { /* sm breakpoint equivalent */
    .control {
        flex-direction: row; /* Row layout for larger screens */
        gap: 16px; /* Space between items */
    }
}


button {
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}

button:disabled {
    background-color: #444;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #1669c1;
}

/* Specific button styles based on previous Tailwind colors */
.button-blue {
    background-color: #1a73e8; /* Match existing button style */
}
.button-blue:hover:not(:disabled) {
    background-color: #1669c1; /* Match existing button hover */
}

.button-green {
    background-color: #34a853; /* Google Green */
}
.button-green:hover:not(:disabled) {
    background-color: #2e8b4a;
}

.button-gray {
    background-color: #5f6368; /* Google Gray */
}
.button-gray:hover:not(:disabled) {
    background-color: #54575c;
}


select {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 10px;
    width: 220px;
    font-size: 16px;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 5px;
}

/* Removed generic div margin to avoid conflicts */
/* div {
    margin-bottom: 15px;
} */

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #333;
}

.data-table {
    width: 100%; /* Use width instead of min-width */
    border-collapse: collapse;
}

.data-table thead {
    background-color: #333;
}

.data-table th {
    padding: 12px 24px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #b0b0b0; /* Lighter gray for header text */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.data-table th:last-child {
    text-align: right;
}

.data-table tbody tr {
    background-color: #1e1e1e; /* Match input field background */
    border-bottom: 1px solid #333; /* Border between rows */
}

.data-table tbody tr:last-child {
     border-bottom: none; /* No border on the last row */
}


.data-table td {
    padding: 16px 24px;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #e0e0e0; /* Default text color for cells */
}

.data-table td:nth-child(1) {
     font-weight: 500;
     color: #ffffff; /* White color for the key */
}

.data-table td:last-child {
    text-align: right;
    font-weight: 500;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Action buttons in the table */
/* Styles for Edit Button */
.action-button.edit-btn {
    color: #a0c3ff; /* Lighter blue for edit */
    cursor: pointer;
    background: none; /* Ensure no background */
    border: none; /* Ensure no border */
    padding: 0; /* Remove padding */
    font-size: 0.875rem;
    text-decoration: underline; /* Add underline for link-like appearance */
    transition: color 0.3s ease; /* Smooth transition for color */
}
.action-button.edit-btn:hover {
    color: #7ba7ff; /* Darker blue on hover */
    text-decoration: none; /* Remove underline on hover */
}

/* Styles for Delete Button */
.action-button.delete-btn {
    color: #ff6b6b; /* Red for delete */
    cursor: pointer;
    background: none; /* Ensure no background */
    border: none; /* Ensure no border */
    padding: 0; /* Remove padding */
    font-size: 0.875rem;
    text-decoration: underline; /* Add underline for link-like appearance */
    transition: color 0.3s ease; /* Smooth transition for color */
}
.action-button.delete-btn:hover {
    color: #ff4c4c; /* Darker red on hover */
    text-decoration: none; /* Remove underline on hover */
}


.no-entries-message {
    color: #b0b0b0; /* Match header text color */
    padding: 16px;
    text-align: center;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Darker overlay */
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #1e1e1e; /* Match input field background */
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Darker shadow */
    width: 90%;
    max-width: 500px;
    color: #e0e0e0;
}
.close-button {
    color: #b0b0b0; /* Match header text color */
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-button:hover,
.close-button:focus {
    color: #ffffff; /* White on hover */
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px; /* Consistent margin */
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #b0b0b0; /* Match header text color */
    margin-bottom: 5px; /* Spacing below label */
}

.form-input {
    display: block;
    width: 95%;
    padding: 10px 12px; /* Slightly more padding */
    border: 1px solid #333;
    border-radius: 5px; /* Match other inputs */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: none;
    background-color: #121212; /* Darker background for input */
    color: #e0e0e0;
}
.form-input::placeholder {
    color: #a0a0a0;
}
.form-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}
