/* Sidebar styling */
.list-container {
    margin-top: 0px;
    padding: 0 35px; /* Apply consistent horizontal padding here */
}
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}
.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    color: #777;
}

.header-right {
    display: flex;
    gap: 12px;
}

/* 顶部管理按钮样式 */
.btn-blacklist,
.btn-favorite {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-blacklist i,
.btn-favorite i {
    font-size: 14px;
}

.btn-blacklist:hover,
.btn-blacklist.active {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.btn-favorite:hover,
.btn-favorite.active {
    background: #faad14;
    color: #fff;
    border-color: #faad14;
}
.card-body {
    padding: 0; /* Remove internal padding, table handles its own padding now */
}
table {
    width: 100%;
    border-collapse: collapse;
}
table th,
table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
table th {
    background-color: #f8f8f8;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}
table tbody tr:last-child td {
    border-bottom: none;
}
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.badge.type-premium {
    background-color: #333;
    color: #fff;
}
.badge.type-basic {
    background-color: #f0f0f0;
    color: #555;
}
.badge.status-active {
    background-color: #e6ffe6;
    color: #4CAF50;
}
.badge.status-expiring {
    background-color: #fff8e1;
    color: #FFC107;
}
.badge.status-expired {
    background-color: #ffebee;
    color: #F44336;
}
.btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* 黑名单按钮样式 */
.btn-edit {
    color: #666;
}
.btn-edit:hover {
    background-color: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}
.btn-edit.active {
    background-color: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

/* 收藏按钮样式 */
.btn-detail {
    color: #666;
}
.btn-detail:hover {
    background-color: #faad14;
    color: #fff;
    border-color: #faad14;
}
.btn-detail.active {
    background-color: #faad14;
    color: #fff;
    border-color: #faad14;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: none; /* Removed as it's part of the card now */
    margin-top: 0; /* Removed as it's inside the card */
}
.pagination-info {
    font-size: 14px;
    color: #555;
}
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px; /* Use gap for consistent spacing between major sections */
}
.records-per-page {
    font-size: 14px;
    color: #555;
}
.records-per-page select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-left: 0; /* No margin-left here as gap is used in pagination-controls */
    font-size: 14px;
    outline: none;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23888" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;/* Card header buttons */
.header-right {
    display: flex;
    gap: 10px;
}

.btn-blacklist,
.btn-favorite {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-blacklist i,
.btn-favorite i {
    font-size: 14px;
}

.btn-blacklist:hover {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.btn-favorite:hover {
    background: #faad14;
    color: #fff;
    border-color: #faad14;
}

.btn-blacklist.active {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.btn-favorite.active {
    background: #faad14;
    color: #fff;
    border-color: #faad14;
}

/* Table action buttons */
.btn-edit,
.btn-detail {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    margin: 0 4px;
    transition: all 0.3s;
}

.btn-edit:hover,
.btn-edit.active {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.btn-detail:hover,
.btn-detail.active {
    background: #faad14;
    color: #fff;
    border-color: #faad14;
}

/* Card header layout */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.header-left {
    flex: 1;
}
    cursor: pointer;
}
.pagination-buttons {
    display: flex;
}
.page-btn {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    margin: 0; /* No margin between buttons */
    transition: background-color 0.2s, color 0.2s;
}
.page-btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.page-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.page-btn:not(:first-child) {
    border-left: none;
}
.page-btn.active {
    background-color: #444;
    color: #fff;
    /* border-color: #4CAF50; */
}
.total-records {
    font-size: 14px;
    color: #555;
} 
.goto-page {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}
.goto-page input[type="text"] {
    width: 40px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
    text-align: center;
    outline: none;
}
