/**
 * Gopvonvietlott.com
 * Phát triển bởi: MDDev
 */

.pools-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.pools-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pools-page-header h1 i {
    color: var(--primary);
    margin-right: 10px;
}

.pools-page-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.pools-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.pools-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.pools-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pools-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
}

.pools-tab i {
    font-size: 18px;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.pools-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
}

.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: block;
}

.pool-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pool-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.pool-code-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.status-badge-sm {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-open {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.status-full {
    background: rgba(0, 188, 212, 0.2);
    color: #00bcd4;
}

.status-processing {
    background: rgba(255, 193, 7, 0.2);
    color: var(--primary);
}

.status-won {
    background: rgba(76, 175, 80, 0.3);
    color: var(--success);
}

.status-lost {
    background: rgba(150, 150, 150, 0.2);
    color: #999;
}

.status-completed {
    background: rgba(100, 100, 100, 0.2);
    color: #aaa;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

.pool-progress {
    margin: 15px 0;
}

.pool-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pool-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.5s;
}

.pool-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.pool-prize {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    color: var(--success);
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
}

.pool-prize i {
    margin-right: 8px;
}

.pool-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.pool-card-footer i {
    margin-right: 6px;
}

.pool-type-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.pool-type-power655 {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
}

.pool-type-mega645 {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
}

.pool-type-lotto535 {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #fff;
}

.pool-type-max3d,
.pool-type-max3dpro {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: #fff;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .pools-page-header h1 {
        font-size: 24px;
    }

    .pools-tabs {
        gap: 10px;
    }

    .pools-tab {
        padding: 12px 18px;
        font-size: 14px;
    }

    .pools-tab span:not(.tab-count) {
        display: none;
    }

    .pools-grid {
        grid-template-columns: 1fr;
    }
}
