/* Button styles */
.generate-btn, .generate-new-btn {
    display: block;
    margin: 0 auto;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #ff8a80 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

.generate-btn::before, .generate-new-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.generate-btn:hover::before, .generate-new-btn:hover::before {
    left: 100%;
}

.generate-btn:hover, .generate-new-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.generate-new-btn {
    margin-top: 20px;
}

.regenerate-images-btn {
    margin-top: 0;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    position: relative;
    overflow: hidden;
}

.regenerate-images-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.regenerate-images-btn:hover::before {
    left: 100%;
}

.regenerate-images-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.5);
}

.regenerate-images-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.random-element-btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(255, 216, 155, 0.4);
    position: relative;
    overflow: hidden;
}

.random-element-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.random-element-btn:hover::before {
    left: 100%;
}

.random-element-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 216, 155, 0.5);
}

.clear-elements-btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    margin-left: 10px;
}

.clear-elements-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.clear-elements-btn:hover::before {
    left: 100%;
}

.clear-elements-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.5);
}

.save-monster-btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    position: relative;
    overflow: hidden;
}

.save-monster-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.save-monster-btn:hover::before {
    left: 100%;
}

.save-monster-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.5);
}

.saved-monsters-btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(128, 90, 213, 0.4);
    position: relative;
    overflow: hidden;
}

.saved-monsters-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.saved-monsters-btn:hover::before {
    left: 100%;
}

.saved-monsters-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(128, 90, 213, 0.5);
}

.delete-saved-monster-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.delete-saved-monster-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.5);
}

.delete-saved-card-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-saved-card-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}

.options-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.options-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tab-btn {
    padding: 15px 30px;
    border: 2px solid #667eea;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    color: #667eea;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #718096;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #2d3748;
}

.islands-btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
    position: relative;
    overflow: hidden;
    margin-left: 10px;
}

.islands-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.islands-btn:hover::before {
    left: 100%;
}

.islands-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.5);
}

.create-island-btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    margin-bottom: 20px;
}

.create-island-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.5);
}

.breed-monsters-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ed64a6 0%, #d53f8c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(237, 100, 166, 0.4);
    margin-right: 10px;
}

.breed-monsters-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(237, 100, 166, 0.5);
}

.delete-island-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.delete-island-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.5);
}

.confirm-breed-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ed64a6 0%, #d53f8c 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(237, 100, 166, 0.4);
}

.confirm-breed-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(237, 100, 166, 0.5);
}

.delete-island-card-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-island-card-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}

.remove-monster-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-monster-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}