.pg-wrapper { 
    max-width: 900px; 
    margin: 40px auto; 
    padding: 0 15px; /* Add padding for mobile */
}

.pg-tabs { 
    display: flex; 
    gap: 10px; 
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.pg-tab { 
    padding: 10px 20px; 
    text-decoration: none; 
    color: #666;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.pg-tab:hover {
    color: #3a3a3a;
}

.pg-tab.active { 
    color: #3a3a3a;
    border-bottom-color: #3a3a3a;
}

/* Pulse animation when clicking active tab */
.pg-tab.active.pulse {
    animation: tabPulse 0.4s ease;
}

@keyframes tabPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

input[type="color"] { 
    height: 45px; 
    cursor: pointer; 
    border: 2px solid #e2e8f0; 
    border-radius: 8px;
    min-width: 45px; /* Prevent it from getting too small */
}

/* Mobile optimization */
@media screen and (max-width: 768px) {
    .pg-wrapper {
        margin: 20px auto;
    }
    
    .pg-tabs {
        flex-wrap: wrap;
        gap: 5px;
        background: #fafafa;
        padding: 8px;
        border-radius: 3px;
    }
    
    .pg-tab {
        padding: 8px 15px;
        font-size: 13px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 3px;
    }
    
    .pg-tab.active {
        background: #3a3a3a;
        color: #fff;
        border-color: #3a3a3a;
    }
}

@media screen and (max-width: 480px) {
    .pg-tab {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }
}