/* Color Token Generator Styles */
.color-token-generator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.base-color-group {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}

.base-color-group:last-child {
    margin-bottom: 0;
}

.shades-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-swatch {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: scale(1.1);
    z-index: 1;
}

.color-swatch .tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 2;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.color-swatch:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

#codeOutput {
    max-height: 400px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
}

#colorPalettePreview .color-family {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.color-scale {
    display: flex;
    height: 3rem;
}

.color-scale-item {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.25rem;
    font-size: 0.625rem;
    color: white;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

/* Syntax highlighting for code output */
.token.prefix {
    color: #6c757d;
}
.token.property {
    color: #6f42c1;
}
.token.value {
    color: #005cc5;
}
.token.comment {
    color: #6a737d;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .shades-container {
        gap: 0.25rem;
    }
    
    .color-swatch {
        width: 2rem;
        height: 2rem;
    }
    
    #codeOutput {
        max-height: 300px;
    }
}