/* PulseCheck Admin — custom styles */

body {
    grid-template-columns: 1fr 90% 1fr;
}

nav .brand {
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* HTMX loading indicator */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-in_progress {
    background-color: #cce5ff;
    color: #004085;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-skipped {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Uploads page layout */
.uploads-heading {
    text-align: left;
}

.sidebar-filters {
    width: 200px;
    float: none;
    position: absolute;
    right: calc(100% + 1.5rem);
    top: 5rem;
}

.uploads-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.sidebar-filters h3 {
    margin: 0 0 0.5rem;
}

.sidebar-filters label {
    display: block;
    font-size: 0.85em;
    margin: 0 0 0.2rem;
}

.sidebar-filters select {
    width: 100%;
    padding: 0.4em 0.5em;
    margin-bottom: 0.75rem;
}

.sidebar-filters a {
    display: block;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.85em;
    padding: 0.4em 0.8em;
    border: 2px dashed #e6a817;
    border-radius: 4px;
    color: #e6a817;
    background: transparent;
    text-decoration: none;
    text-align: center;
}

.sidebar-filters a:hover {
    background: rgba(230, 168, 23, 0.1);
}

.uploads-content table {
    width: 100%;
}

/* Search input */
.search-form {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.4em 0.6em;
    box-sizing: border-box;
}

.uploads-content {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 1400px) {
    .sidebar-filters {
        position: static;
        width: auto;
        margin: 0 0 1rem;
    }

    .uploads-content {
        max-width: 100%;
    }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
