/* BaseEntityList Component Styles */

/* Header */
.entity-list-header {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 10px;
}

.header-content {
    display: flex;
    align-items: center;
}

.header-title {
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid #0078d4;
    color: #0078d4;
}

.header-close {
    background: none;
    border: none;
    padding: 5px;
    margin-left: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Toolbar */
.entity-list-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.btn-add {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #00bcf2;
    border: none;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add:hover {
    background-color: #009ed6;
}

/* Search */
.search-container {
    flex: 1;
    margin: 0 20px;
    position: relative;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 8px 35px 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #6c757d;
}

/* Toolbar actions */
.toolbar-actions {
    display: flex;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 5px;
    color: #6c757d;
    cursor: pointer;
}

.btn-icon:hover {
    color: #0078d4;
}

.btn-actions {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-actions:hover {
    background-color: #e2e6ea;
}

.btn-actions i {
    margin-left: 5px;
    font-size: 12px;
}

/* Actions dropdown */
.actions-menu-container {
    position: relative;
}

.actions-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 100;
    width: 180px;
}

.dropdown-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

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

.dropdown-item.disabled {
    color: #aaa;
    pointer-events: none;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

/* Table */
.entity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.entity-table thead tr {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.entity-table th {
    padding: 10px;
    text-align: left;
    font-weight: 500;
}

.entity-table th.col-checkbox {
    text-align: center;
    width: 40px;
}

.entity-table td {
    padding: 10px;
}

.entity-table td.col-checkbox {
    text-align: center;
}

.entity-table tbody .row-even {
    border-bottom: 1px solid #eaecef;
}

.entity-table tbody .row-odd {
    background-color: #f9fafb;
    border-bottom: 1px solid #eaecef;
}

/* Empty state */
.empty-state {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

.empty-message {
    font-size: 16px;
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 14px;
}

/* Footer */
.entity-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
}

.btn-page {
    background: none;
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-page:hover:not(:disabled) {
    background-color: #f8f9fa;
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    margin: 0 10px;
    font-size: 13px;
}

.pagination-text {
    font-size: 13px;
    margin-right: 20px;
}
