body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/*Device ausgeliehen*/
/* Basis-Stil für die Verfügbarkeitsanzeige */
td.sa::before,
td.sv::before {
    content: "";
    display: inline-block;
    width: 20px; /* Kreisgröße */
    height: 20px;
    border-radius: 70%;
    margin-right: 5px; /* Abstand zum Text */
}

td.sa::before {
    background-color: rgb(255, 0, 0);
}
/*Device verfügbar*/
td.sv::before {
    background-color: rgb(0, 255, 11);
}

/* Tabellenzeile ungerade  */
tr.table-tr-odd {
    background-color: rgb(210, 210, 210);
}

/* Tabellenzeile gerade  */
tr.table-tr-even {
    background-color: #afafaf;
}

/* Device, Tabellenzeile ungerade  */
tr.table-device-tr-odd {
    background-color: rgb(210, 210, 210);
}

/* Device, Tabellenzeile gerade  */
tr.table-device-tr-even {
    background-color: #afafaf;
}

/* Device, Tabellenzeile ungerade  */
tr.table-event-tr-odd {
    background-color: rgba(210 , 210, 210);
}

/* Device, Tabellenzeile gerade  */
tr.table-event-tr-even {
    background-color: #afafaf;
}

th.col_action {
    width: 150px;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

.logout-btn {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

/* Layout für die Tabellen */
.tables-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Tabellen oben ausrichten */
    gap: 20px;
}

.table-container {
    flex: 0 0 80%; /* Jede Tabelle nimmt 45% der Breite ein */
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

table th, table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #7c7c7c;
}

table th {
    background-color: #3245fd;
    color: white;
}

.btn, .delete-btn, .edit-btn, .mark-btn, .rent-btn, .recall_all-btn {
    display: inline-block;
    padding: 5px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    margin: 5px 0;
    text-align: center;
    cursor: pointer;
}

.btn {
    background-color: #4CAF50;
    background-image: url(../images/add.png);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position:center;
    width: 34px;
    height: 34px;
}

.btn:hover {
    background-color: #45a049;
}

.mark-btn {
    background-image: url(../images/edit.png) ;
    background-size: 24px;
    background-repeat: no-repeat;
    background-position:center;
    width: 34px;
    height: 34px;
    background-color: #2196F3;
}

.mark-btn:hover {
    background-color: #1976D2;
}

.edit-btn {
    background-image: url(../images/edit.png) ;
    background-size: 24px;
    background-repeat: no-repeat;
    background-position:center;
    width: 24px;
    height: 24px;
    background-color: #2196F3;
}

.edit-btn:hover {
    background-color: #1976D2;
}

.rent-btn {
    background-image: url(../images/rent.png) ;
    background-size: 40px;
    background-repeat: no-repeat;
    background-position:center;
    width: 24px;
    height: 24px;
    background-color: #55f321;
}

.rent-btn:hover {
    background-color: #2cd219;
}

.rent-device-btn {
    background-image: url(../images/rent.png);
    background-size: 40px 40px;
    background-repeat: no-repeat;
    background-position: center;
    width: 34px;
    height: 34px;
    background-color: #55f321;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
    transition: background-color 0.2s ease;
}

.rent-device-btn:hover {
    background-color: #2cd219;
}

.recall_all-btn {
    background-image: url(../images/recall.png) ;
    background-size: 40px;
    background-repeat: no-repeat;
    background-position:center;
    width: 24px;
    height: 24px;
    background-color: #ea0b3e;
}

.recall_all-btn:hover {
    background-color: #dd0847;
}

.delete-btn {
    background-image: url(../images/delete.png);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position:center;
    width: 24px;
    height: 24px;
    background-color: #000000;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.insert-btn {
    background-color: #4CAF50;

}

.insert-btn:hover {
    background-color: #45a049;
}

.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2; /* Optional */
}

.login-wrapper form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

/* Optional: Etwas optisches Feintuning für Eingabefelder */
.login-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.login-wrapper input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-wrapper button {
    width: 100%;
    padding: 0.7rem;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.login-wrapper button:hover {
    background-color: #0056b3;
}

