/* Premium Tool Shared CSS */

.tool-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--surface-container);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.light-mode .tool-checkbox {
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: #EEF3F8;
    box-shadow: inset 2px 2px 4px rgba(166, 180, 200, 0.4), inset -2px -2px 4px rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.tool-checkbox:checked {
    background: #009251; /* Primary */
    border-color: #009251;
    box-shadow: 0 0 10px rgba(0, 146, 81, 0.4);
}

.light-mode .tool-checkbox:checked {
    background: linear-gradient(135deg, #00B363 0%, #009251 100%);
    border-color: transparent;
    box-shadow: 3px 3px 8px rgba(0, 146, 81, 0.35), -2px -2px 6px rgba(255, 255, 255, 0.8);
}

.tool-checkbox::after {
    content: 'check';
    font-family: 'Material Symbols Outlined';
    color: white;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-checkbox:checked::after {
    opacity: 1;
    transform: scale(1);
}

.tool-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    outline: none;
}
.light-mode .tool-slider {
    background: #DFE7F1;
    box-shadow: inset 1px 1px 3px rgba(166, 180, 200, 0.4), inset -1px -1px 3px rgba(255, 255, 255, 0.9);
}

.tool-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #009251;
    cursor: pointer;
    border: 3px solid #0B1A33;
    box-shadow: 0 0 15px rgba(0,146,81,0.5);
    transition: transform 0.1s ease;
}
.light-mode .tool-slider::-webkit-slider-thumb {
    border: 2px solid #FFFFFF;
    background: linear-gradient(135deg, #00B363 0%, #009251 100%);
    box-shadow: 3px 3px 8px rgba(0, 146, 81, 0.4), -2px -2px 6px rgba(255, 255, 255, 0.9);
}
.tool-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.tool-output {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    word-break: break-all;
    background: transparent;
    border: none;
    color: inherit;
    width: 100%;
    outline: none;
}
@media (min-width: 768px) {
    .tool-output {
        font-size: 2.2rem;
    }
}

.strength-bar-container {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
}
.light-mode .strength-bar-container {
    background: #DFE7F1;
    border-radius: 9999px;
    border: 1px solid rgba(200, 215, 230, 0.6);
    box-shadow: inset 1px 1px 3px rgba(166, 180, 200, 0.35), inset -1px -1px 3px rgba(255, 255, 255, 0.8);
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.copy-flash {
    animation: flashGreen 0.6s ease;
}
@keyframes flashGreen {
    0% { background-color: rgba(0,146,81,0.3); }
    100% { background-color: transparent; }
}

/* Glass panel adjustments for form items */
.tool-control-group {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}
.tool-control-group:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(0,146,81,0.2);
}
.light-mode .tool-control-group {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    box-shadow: 4px 4px 12px rgba(166, 180, 200, 0.25), -4px -4px 12px rgba(255, 255, 255, 0.9), inset 1px 1px 1px rgba(255, 255, 255, 0.8);
}
.light-mode .tool-control-group:hover {
    box-shadow: 6px 6px 16px rgba(166, 180, 200, 0.35), -6px -6px 16px rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    border-color: rgba(0, 146, 81, 0.3);
}
