/* Βασικά Στυλ */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap; /* Αποτρέπει τη μετακίνηση κειμένων σε πολλές γραμμές */
}

table th {
    background-color: #f2f2f2;
}

/* Φόρμα για την προσθήκη συναλλαγής */
form {
    margin-bottom: 20px;
}

label {
    font-weight: bold;
}

input, select {
    margin: 5px 0;
    padding: 8px;
    width: 100%;
    max-width: 300px;
}

button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Responsive Design */
@media only screen and (max-width: 767px) {
    /* Περιορισμός πλάτους πίνακα */
    .table-container {
        overflow-x: auto;
        width: 100%;
    }

    table {
        width: 100%;
        font-size: 12px;  /* Μικρότερο μέγεθος γραμματοσειράς για κινητά */
    }

    table th, table td {
        padding: 6px 8px;  /* Μικρότερο padding για πιο compact εμφάνιση */
    }

    table th:nth-child(1), table td:nth-child(1) {
        width: 30%;  /* Περιορισμός πλάτους της στήλης Περιγραφή */
    }

    table th:nth-child(2), table td:nth-child(2) {
        width: 20%;  /* Περιορισμός πλάτους της στήλης Ποσό */
    }

    table th:nth-child(3), table td:nth-child(3) {
        width: 15%;  /* Περιορισμός πλάτους της στήλης Τύπος */
    }

    table th:nth-child(4), table td:nth-child(4) {
        width: 20%;  /* Περιορισμός πλάτους της στήλης Ημερομηνία */
    }

    table th:nth-child(5), table td:nth-child(5) {
        width: 15%;  /* Περιορισμός πλάτους της στήλης Ενέργειες */
    }

    form {
        max-width: 100%;
        margin: 0 auto;
    }

    input, select {
        max-width: 100%;
    }

    button {
        width: 100%;
    }
}
/* Οριζόντια στοίχιση για τη φόρμα Προσθήκη Συναλλαγής */
.transaction-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Επιτρέπει στα στοιχεία να στοιχίζονται σωστά σε μικρές οθόνες */
}

.transaction-form label {
    margin: 0;
}

.transaction-form input,
.transaction-form select,
.transaction-form button {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.transaction-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.transaction-form button:hover {
    background-color: #45a049;
}
/* Οριζόντια στοίχιση για τα κουμπιά φίλτρων */
.filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form label {
    margin: 0;
}

.filter-form input[type="date"],
.filter-form select,
.filter-form button,
.filter-form .btn-clear {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.btn-filter {
    background-color: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-filter:hover {
    background-color: #1976D2;
}

.btn-clear {
    background-color: #f44336;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.btn-clear:hover {
    background-color: #d32f2f;
}
/* Στυλ για τη φόρμα φίλτρων */
.filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Στυλ για το κουμπί Εμφάνιση */
.btn-filter {
    background-color: #2196F3; /* Μπλε φόντο */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.btn-filter:hover {
    background-color: #1976D2; /* Σκούρο μπλε κατά την αιώρηση */
}

/* Στυλ για το κουμπί Εκκαθάριση με κόκκινο φόντο */
.btn-clear {
    background-color: #f44336; /* Κόκκινο φόντο */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.btn-clear:hover {
    background-color: #d32f2f; /* Σκούρο κόκκινο κατά την αιώρηση */
}
/* Στυλ για μείωση του πλάτους του πεδίου Ποσό */
#amount {
    width: 100px; /* Ρυθμίστε το πλάτος σε μικρότερο μέγεθος, π.χ. 100px */
    max-width: 100%; /* Διασφαλίζει ότι το πεδίο προσαρμόζεται σε μικρές οθόνες */
}
