/* General form styling */
.star-chicken-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Labels */
.star-chicken-form label {
    margin-right: 10px;
    font-weight: bold;
}

/* Inputs */
.star-chicken-form input[type="date"],
.star-chicken-form input[type="number"],
.star-chicken-form input[type="text"] {
    padding: 8px;
    margin-right: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Responsive table */
#transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#transactions-table th,
#transactions-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
}

#transactions-table th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

#transactions-table th:hover {
    background-color: #45a049;
    cursor: pointer;
}

/* Loading class (blur effect) */
#transactions-table.loading {
    filter: blur(4px);
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

/* Spinner styling */
#spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: none;
}

.spinner-border {
    width: 50px;
    height: 50px;
    border: 0.4em solid rgba(0, 0, 0, 0.1);
    border-top-color: #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Pagination styling */
#pagination-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pagination-link {
    margin: 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-link:hover {
    background-color: #007cba;
    color: #fff;
}

.pagination-link.active {
    background-color: #007cba;
    color: white;
    font-weight: bold;
    cursor: default;
}

/* Mobile-friendly pagination */
@media screen and (max-width: 480px) {
    .pagination-link {
        padding: 5px 10px;
        font-size: 14px;
    }
}
