a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button, input[type="submit"], .button-to input {
    background: #0d6efd;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover, input[type="submit"]:hover {
    background: #0b5ed8;
}

form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.05) 0 1px 3px;
    max-width: 500px;
}

form div.field {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"]
form textarea,
form select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form textarea:focus,
form select:focus {
    border-color: #0d6efd;
    outline: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.index-table tbody tr,
.assoc-table tbody tr {
    cursor: pointer;
}

table th, table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f1f1f1;
    text-align: left;
}

table tr:hover td {
    background: #fafafa;
}

table tr:nth-child(even) {
    background: #f8fafc;
}

.btn {
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
}

.page-header .btn {
    font-size: 1.2rem;
    padding: 8px 12px;
}

.btn-primary {
    background-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0d41fd;
}

.btn-secondary {
    background-color: gray;
    font-size: 1rem;
    padding: 8px 14px;
}

.btn-secondary:hover {
    text-decoration: none;
}

.btn-primary:active {
    background-color: #0d1dfd;
}

.btn-warning {
    background-color: #d97706;
}

.btn-warning:hover {
    background-color: #bf6804;
}

.btn-warning:active {
    background-color: #9c5300;
}

.btn-danger {
    background-color: #dc2626;
}

.btn-danger:hover {
    background-color: #c01111;
}

.btn-danger:active {
    background-color: #8e0000;
}

.btn:hover {
    opacity: 0.85;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.page-header-actions {
    display: flex;
    gap: 10px;
}

.pagination {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

.pagination span {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    background: white;
}

.pagination .current {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.filters-panel {
    position: fixed;
    top: 80px;
    right: -500px;
    width: 300px;
    max-height: 80vh;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 999;
    transition: 0.5s;
    overflow-y: scroll;
}

.filters-panel.visible {
    right: 20px;
}

#filters-show {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 10px 16px;
    writing-mode: sideways-lr;
    border-radius: 8px 0 0 8px;
    background-color: #0d6efd;
    color: white;
    cursor: pointer;
    z-index: 998;
    transition: 0.5s;
}

#filters-show.transparent {
    opacity: 0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.filters-form {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

#filters-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.predicate-select,
.value-field {
    margin-top: 5px;
    width: 90% !important;
}

.value-field {
    height: 30px !important;
}

.filter-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.form-errors {
    color: red
}