/**
 * My Heaps Page Styles
 * Styles for the user's heap listing page
 */

/* Heap list card */
.heap-list-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    border-left: 3px solid transparent;
}

.heap-list-card:hover {
    box-shadow: 0 4px 16px rgba(247, 148, 29, 0.15);
    transform: translateY(-2px);
    border-left-color: #f7941d;
}

/* Heap status badges */
.heap-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.heap-status.active {
    background-color: #dc3545;
    color: white;
}

.heap-status.inactive {
    background-color: #ffc107;
    color: #333;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i.bi-search,
.empty-state i.bi-inbox {
    font-size: 4rem;
    color: #f7941d;
    margin-bottom: 1rem;
    display: block;
}

/* Smaller buttons inside empty state */
.empty-state .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.empty-state .btn i {
    font-size: 0.8rem;
    color: inherit;
    margin-bottom: 0;
}

/* Edit heap button */
.btn-edit-heap {
    background-color: #f7941d;
    border-color: #f7941d;
    color: white;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.btn-edit-heap:hover {
    background-color: #d47a0a;
    border-color: #d47a0a;
    color: white;
}

/* Page header */
.my-heaps-header {
    border-bottom: 2px solid #f7941d;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Search container */
.search-container .input-group {
    width: 100%;
}

.search-container .form-control:focus {
    border-color: #f7941d;
    box-shadow: none;
}

.search-container .input-group-text {
    border-color: #ced4da;
}

.search-container .form-control:focus + .input-group-text,
.search-container .form-control:focus ~ .input-group-text {
    border-color: #f7941d;
}

.btn-orange {
    background-color: #f7941d;
    border-color: #f7941d;
    color: white;
}

.btn-orange:hover {
    background-color: #d47a0a;
    border-color: #d47a0a;
    color: white;
}

/* Card title links */
.heap-list-card .card-title {
    font-size: 0.95rem;
}

.heap-list-card .card-title a {
    color: #333;
    text-decoration: none;
}

.heap-list-card .card-title a:hover {
    color: #f7941d;
}

/* View toggle buttons */
.view-toggle .btn {
    padding: 0.25rem 0.5rem;
}

/* Table view */
.heap-table {
    font-size: 0.9rem;
}

.heap-table th {
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #f7941d;
    white-space: nowrap;
}

.heap-table td {
    vertical-align: middle;
}

.heap-table .heap-name-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.heap-table .heap-name-link:hover {
    color: #f7941d;
}

/* Smaller status badges for table */
.heap-status-sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

/* Pagination */
.pagination {
    gap: 2px;
}

.pagination .page-link {
    color: #f7941d;
    border-color: #dee2e6;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    min-width: 1.8rem;
    text-align: center;
}

.pagination .page-link:hover {
    color: #d47a0a;
    background-color: #fff3e6;
    border-color: #f7941d;
}

.pagination .page-item.active .page-link {
    background-color: #f7941d;
    border-color: #f7941d;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}
