/* Generel styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Sørg for at toppen af siden starter normalt */
    min-height: 100vh; /* Tillader scrolling */
    width: 100%;
    overflow: auto; /* Tillader scrolling, hvis nødvendigt */
}

/* Centreret container */
.container {
    width: 95%;
    max-width: 500px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
    margin-top: 20px; /* Giver lidt luft over boksen */
}

/* Formular styling */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Label styling */
label {
    font-weight: bold;
    margin-top: 10px;
    text-align: left;
}

/* Input-felter og dropdown */
input, select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    box-sizing: border-box;
}

/* Dropdown container med ikon */
.select-container {
    position: relative;
    width: 100%;
}

.select-container select {
    appearance: none;
    background-color: white;
    cursor: pointer;
    padding-right: 40px; /* Plads til ikon */
}

/* Dropdown ikon */
.select-container::after {
    content: "⏷"; /* Pil-ikon */
    font-size: 20px;
    color: #666;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Knappestil */
button {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Tilbage-knap */
a button {
    background-color: #007bff;
}

a button:hover {
    background-color: #0056b3;
}

/* Responsiv justering */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 15px;
        margin-top: 10px;
    }

    input, select {
        font-size: 16px;
        padding: 10px;
    }

    button {
        font-size: 16px;
        padding: 12px;
    }
}

/* Venstrestil tekst i div med class transaction-card */
.transaction-card {
    text-align: left;
    padding: 10px;
    background-color: #f9f9f9; /* Eksempel på baggrundsfarve */
    border: 1px solid #ddd; /* Eksempel på kant */
    margin-bottom: 10px;
}

/* Venstrestil tekst i div med class child-card */
.child-card {
    text-align: left;
    padding: 10px;
    margin-bottom: 10px;
}

/* Stjerner mere visuelle */
span.stars {
    color: goldenrod;
    font-size: 1.5em;
}

/* Tabelstil */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transaction-table th, .transaction-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.transaction-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Paginering */
.pagination {
    margin-top: 20px;
}

.pagination a {
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #0056b3;
}

.pagination a:active {
    background-color: #003366;
}
