body {
    background-image: url("background.png");
    background-size: cover;
    background-position: center;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 130vh;
    padding: 20px;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    gap: 20px
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.card-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;  /* Ensures it expands downward */
    justify-content: center;
}

.logo {
    max-width: 120px;
    margin-bottom: 15px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.remove-entry {
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px; /* Ensures proper spacing */
}

.remove-entry:hover {
    background-color: darkred;
}

.input-group input,
.input-group select {
    width: 48%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.dev_id_input {
    flex-grow: 0;
    flex: 1; /* Makes the input take up available space */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center; /* Centers text inside input */
    max-width: 300px; /* Adjust width as needed */
}

button {
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.roundbutton {
    background-color: rgb(0, 255, 0);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px; /* Ensures proper spacing */
}

.roundbutton:hover {
    background: #00ff00;
}


button:hover {
    background: #0056b3;
}

.table-container {
    width: 100vw;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    position: relative;
    max-width: 900px;
    margin-top: 20px;
}


.table-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

th {
    background: #007BFF;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Fix the issue where scrolling clips the border-radius */
.table-container::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Keeps header row rounded */
th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
}

/* Optional: Ensures bottom row stays rounded */
tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.delete-btn {
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.delete-btn:hover {
    background: darkred;
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Centers the button */
}

#syncButton {
    width: 100%;
    max-width: 600px; /* Same max-width as .card and .table-container */
    margin: 20px auto 0 auto; /* Ensures it's centered */
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px; /* Matches card styling */
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Consistent shadow */
    display: block; /* Ensures no inline margin issues */
}


#syncButton:hover {
    background: #0056b3;
}


