/*
 * Admin component classes (equivalent to @layer components).
 * @layer is not used here because @tailwindcss/vite strips @tailwind directives
 * before PostCSS runs, which breaks @layer in separate Vite entries.
 */

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(156 163 175);
    transition: color 150ms, background-color 150ms;
}

.admin-sidebar-link:hover {
    background-color: rgb(255 255 255 / 0.1);
    color: #fff;
}

.admin-sidebar-link.active {
    background-color: rgb(255 255 255 / 0.1);
    color: #fff;
    font-weight: 500;
}

.admin-sidebar-section {
    padding: 1rem 1rem 0.25rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(107 114 128);
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
}

.admin-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: #e0232f;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 150ms;
}

.admin-btn-primary:hover {
    background-color: #6e1418;
}

.admin-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(75 85 99);
    transition: background-color 150ms;
}

.admin-btn-secondary:hover {
    background-color: rgb(249 250 251);
}

.admin-table-row {
    transition: background-color 150ms;
}

.admin-table-row:hover {
    background-color: rgb(224 35 47 / 0.05);
}

.admin-input {
    margin-top: 0.25rem;
    width: 100%;
    border-radius: 0.375rem;
    border-color: rgb(209 213 219);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.admin-input:focus {
    border-color: #e0232f;
    --tw-ring-color: #e0232f;
}
