/* Admin Page Styles */

.admin-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-status-tabs {
    display: flex;
    gap: 0.5rem;
}

.status-tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.status-tab:hover {
    color: #76BD22;
}

.status-tab.active {
    color: #76BD22;
    border-bottom: 2px solid #76BD22;
    font-weight: 500;
}

.admin-toolbar {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.forms-table {
    background: white;
    border: 1px solid #dee2e6;
}

.forms-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.forms-table thead th {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.forms-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.form-row {
    cursor: pointer;
    transition: background-color 0.15s;
}

.form-row:hover {
    background-color: #f8f9fa;
}

.form-title-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-title-cell strong {
    font-size: 1rem;
    color: #76BD22;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.form-row:hover .form-actions {
    opacity: 1;
}

.action-link {
    background: none;
    border: none;
    padding: 0;
    color: #6c757d;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
}

.action-link:hover {
    color: #76BD22;
    text-decoration: underline;
}

.action-link.text-danger:hover {
    color: #dc3545 !important;
}

.action-separator {
    color: #dee2e6;
}

.form-id-link {
    color: #76BD22;
    text-decoration: none;
}

.form-id-link:hover {
    text-decoration: underline;
}

.entries-link {
    color: #198754;
    text-decoration: none;
    font-weight: 500;
}

.entries-link:hover {
    text-decoration: underline;
}

.sort-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sort-btn:hover {
    color: #76BD22;
}

.sort-btn span {
    font-size: 0.75rem;
}

/* Settings Flyout */

.flyout-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1040;
}

.form-settings-flyout {
    position: fixed;
    right: -300px;
    top: 0;
    bottom: 0;
    width: 280px;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s ease;
}

.form-settings-flyout.visible {
    right: 0;
}

.flyout-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

.flyout-menu {
    display: flex;
    flex-direction: column;
}

.flyout-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: none;
    background: white;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s;
}

.flyout-item:hover:not(.disabled) {
    background-color: #f8f9fa;
}

.flyout-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flyout-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.flyout-label {
    font-size: 0.9375rem;
    color: #212529;
}

.flyout-item:hover:not(.disabled) .flyout-label {
    color: #76BD22;
}

/* Badges */

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Pagination */

.pagination {
    font-size: 0.875rem;
}

.page-link {
    color: #6c757d;
}

.page-item.active .page-link {
    background-color: #76BD22;
    border-color: #76BD22;
}

/* Responsive */

/* Breadcrumb Styling */
.admin-breadcrumb {
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-radius: 4px;
}

.admin-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background-color: transparent;
}

.admin-breadcrumb .breadcrumb-item a {
    color: #76BD22;
    text-decoration: none;
}

.admin-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.admin-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Settings Icons */
.settings-icon-btn {
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    font-size: 1.1rem;
    transition: color 0.15s ease-in-out;
}

.settings-icon-btn:hover {
    color: #76BD22;
}

.settings-icon-btn:focus {
    box-shadow: none;
}

@media (max-width: 768px) {
    .admin-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .forms-table {
        font-size: 0.875rem;
    }

    .form-actions {
        opacity: 1;
    }
}
