/* Hash Generator Tool Styles */

.quick-algo-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
}

.quick-algo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: currentColor;
}

.quick-algo-btn.active {
    border-color: currentColor;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn {
    border-color: transparent;
    color: #6b7280;
}

.tab-btn:hover {
    color: #374151;
    border-color: #d1d5db;
}

.tab-btn.active {
    color: #2563eb;
    border-color: #2563eb;
    background-color: #eff6ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.hash-result-card {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.hash-result-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hash-result-card.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.hash-result-card.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.hash-result-card.warning {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.hash-output {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.hash-output:hover {
    background: #f1f5f9;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    color: #6b7280;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.hash-output:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.copy-btn.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.strength-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.strength-high {
    background: #dcfce7;
    color: #166534;
}

.strength-medium {
    background: #fef3c7;
    color: #92400e;
}

.strength-low {
    background: #fee2e2;
    color: #991b1b;
}

.algorithm-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.algorithm-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.security-note {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-left: 3px solid #e2e8f0;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: #64748b;
}

.security-note.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.security-note.error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.security-note.success {
    background: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

.verification-result {
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
}

.verification-result.match {
    background: #f0fdf4;
    border: 2px solid #10b981;
    color: #065f46;
}

.verification-result.no-match {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.comparison-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.comparison-item.match {
    border-color: #10b981;
    background: #f0fdf4;
}

.comparison-item.different {
    border-color: #ef4444;
    background: #fef2f2;
}

.similarity-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.similarity-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    transition: width 0.3s ease;
}

.batch-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
}

.batch-result-item.success {
    border-color: #10b981;
    background: #f0fdf4;
}

.batch-result-item.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.batch-input-preview {
    font-family: monospace;
    font-size: 12px;
    color: #6b7280;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stats-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stats-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.algorithm-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.algorithm-checkbox:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.algorithm-checkbox.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.algorithm-name {
    font-weight: 600;
    color: #374151;
}

.algorithm-bits {
    font-size: 11px;
    color: #6b7280;
}

.toggle-bg {
    background-color: #d1d5db;
    transition: background-color 0.2s ease;
}

.toggle-bg:checked {
    background-color: #2563eb;
}

.animate-pulse-slow {
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.loading-overlay {
    display: flex !important;
}

.loading-overlay.hidden {
    display: none !important;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .quick-algo-btn {
        padding: 8px 6px;
        min-height: 50px;
    }

    .quick-algo-btn span:first-child {
        font-size: 12px;
    }

    .quick-algo-btn span:last-child {
        font-size: 10px;
    }

    .hash-output {
        font-size: 11px;
        padding: 8px;
    }

    .copy-btn {
        position: static;
        opacity: 1;
        margin-top: 8px;
        display: block;
        width: 100%;
    }

    .algorithm-checkbox {
        padding: 6px 8px;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Animation for result appearance */
.hash-result-enter {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.hash-result-card:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Custom scrollbar for better UX */
.max-h-96::-webkit-scrollbar,
.max-h-64::-webkit-scrollbar {
    width: 6px;
}

.max-h-96::-webkit-scrollbar-track,
.max-h-64::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.max-h-96::-webkit-scrollbar-thumb,
.max-h-64::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.max-h-96::-webkit-scrollbar-thumb:hover,
.max-h-64::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
