/* Custom Bootstrap Django Admin Styles */

/* Tables */
#result_list {
    @extend .table;
    @extend .table-striped;
    @extend .table-hover;
}

.results table {
    width: 100%;
    border-collapse: collapse;
}

.results th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

.results td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* Forms */
.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.submit-row input[type="submit"],
.button,
input[type="submit"],
input[type="button"],
.submit-row a {
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 0.5rem;
}

input[type="submit"],
.submit-row input[type="submit"] {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

input[type="submit"]:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.button.default,
.submit-row input.default {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.deletelink,
.deletelink-box a {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Module headers */
.module h2,
.module caption {
    background-color: #0d6efd;
    color: white;
    padding: 0.5rem 1rem;
    margin: 0;
}

/* Action bar */
.actions {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.actions select {
    width: auto;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Pagination */
.paginator {
    margin-top: 1rem;
}

.paginator a,
.paginator span {
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #0d6efd;
}

.paginator .this-page {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Error lists */
.errorlist {
    color: #dc3545;
    list-style: none;
    padding: 0;
    margin: 0.25rem 0;
}

.errorlist li {
    padding: 0.25rem 0;
}