.type-badge {
    @apply px-2 py-1 rounded-full text-xs font-semibold text-white;
}

.type-icon {
    @apply w-10 h-10 rounded-full flex items-center justify-center cursor-pointer transition-transform hover:scale-110;
}

.type-icon.selected {
    @apply ring-4 ring-red-500 ring-offset-2;
}

.type-button-container {
    perspective: 1000px;
}

.type-button {
    transition: all 0.15s ease;
    transform-style: preserve-3d;
}

.type-button:active {
    transform: translateY(2px);
}

.type-button-raised {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.type-button-raised:hover {
    filter: brightness(1.1);
}

.type-button-pressed, .type-button-depressed {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1),
                inset 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transform: translateY(2px);
    filter: brightness(0.95);
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .type-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    .type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-bar {
    transition: width 0.5s ease-out;
}

.evolution-wrapper {
    position: relative;
    overflow-x: auto;
    min-height: 250px;
}

.evolution-container {
    overflow-x: auto;
    padding: 20px 0;
}

.evolution-chain-container {
    position: relative;
    width: 100%;
}

.evolution-tree {
    display: flex;
    justify-content: center;
    min-width: min-content;
}

.evolution-columns {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.evolution-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    align-items: center;
}

.evolution-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    width: 120px;
}

.evolution-card:hover {
    transform: scale(1.05);
}

.evolution-card.has-evolutions::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #9ca3af;
    opacity: 0.5;
}

.evolution-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.evolution-card:hover .evolution-circle {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.evolution-circle img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.evolution-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

.evolution-pokemon {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 100px;
}

.evolution-pokemon:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

.evolution-branches {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    position: relative;
}

.evolution-branch {
    display: flex;
    align-items: center;
}

.evolution-branch::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 2px;
    height: 10px;
    background-color: #d1d5db;
}

.evolution-arrow {
    margin: 0 10px;
    color: #9ca3af;
}

.evolution-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.evolution-path {
    stroke: #9ca3af;
    stroke-width: 2;
    stroke-dasharray: 5,5;
    opacity: 0.6;
}

.evolution-path.branch-path {
    stroke: #ef4444;
    stroke-width: 2.5;
    stroke-dasharray: none;
    opacity: 0.8;
}

.border-normal { border-color: #9ca3af; }
.border-fire { border-color: #f97316; }
.border-water { border-color: #3b82f6; }
.border-electric { border-color: #eab308; }
.border-grass { border-color: #22c55e; }
.border-ice { border-color: #7dd3fc; }
.border-fighting { border-color: #dc2626; }
.border-poison { border-color: #a855f7; }
.border-ground { border-color: #ca8a04; }
.border-flying { border-color: #a5b4fc; }
.border-psychic { border-color: #ec4899; }
.border-bug { border-color: #65a30d; }
.border-rock { border-color: #78716c; }
.border-ghost { border-color: #6b21a8; }
.border-dragon { border-color: #7c3aed; }
.border-dark { border-color: #4b5563; }
.border-steel { border-color: #9ca3af; }
.border-fairy { border-color: #f9a8d4; }

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ef4444;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.move-selector {
    @apply border border-gray-300 rounded-md p-2 mb-2;
}

.results-box {
    transition: opacity 0.3s ease;
}

.results-box.hidden {
    display: none;
}

.dropdown-enter-active,
.dropdown-leave-active {
    transition: opacity 0.2s, transform 0.2s;
}

.dropdown-enter-from,
.dropdown-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

@media (max-width: 768px) {
    .evolution-columns {
        gap: 30px;
    }
    
    .evolution-card {
        width: 100px;
    }
    
    .evolution-circle {
        width: 60px;
        height: 60px;
    }
    
    .evolution-circle img {
        width: 48px;
        height: 48px;
    }
}
