/* Shop modal styles */
.shop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.shop-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.shop-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.shop-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.shop-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.shop-categories {
    display: flex;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}

.shop-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: #7f8c8d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.shop-tab:hover {
    background: #d5dbdb;
    color: #2c3e50;
}

.shop-tab.active {
    background: white;
    color: #2c3e50;
    border-bottom-color: #3498db;
    font-weight: 600;
}

.shop-content {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.shop-category {
    display: none;
}

.shop-category.active {
    display: block;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.shop-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.shop-item.owned {
    background: #d5f4e6;
    border-color: #27ae60;
}

.shop-item.owned .shop-buy-btn {
    background: #27ae60;
    cursor: default;
}

.shop-item.owned .shop-buy-btn.use-btn {
    background: #3498db;
    cursor: pointer;
}

.shop-item.owned .shop-buy-btn.use-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.shop-item.owned .shop-buy-btn.use-btn.active {
    background: #2ecc71;
}

.shop-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.shop-item-info p {
    margin: 0 0 0.8rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.shop-price {
    font-weight: 700;
    color: #e67e22;
    font-size: 1.1rem;
}

.color-preview {
    width: 100%;
    height: 30px;
    border-radius: 4px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shop-buy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
}

.shop-buy-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.shop-buy-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Add buff timer styles */
.buff-timer {
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    margin: 8px 0;
    overflow: hidden;
    position: relative;
}

.buff-timer .progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 1s linear;
}

.buff-timer.active {
    background: #f1c40f;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Add buff status indicator to the game header */
.active-buffs {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.buff-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #f1c40f;
    animation: fadeIn 0.3s ease;
}

.buff-icon {
    font-size: 1.2rem;
}

.buff-time {
    color: #fff;
}

/* Add styles for name change input */
.name-change-input {
    margin: 10px 0;
}

.new-business-name {
    width: 100%;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

.new-business-name:focus {
    outline: none;
    border-color: #3498db;
}