/* Variables for robuste tool only */
.robuste-content-wrapper {
    --primary-color: #2563eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset only for robuste tool content, not affecting site header/footer */
.robuste-content-wrapper * {
    box-sizing: border-box;
}

/* Styles scoped to robuste tool content only */
.robuste-content-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
    margin: 0 auto;
    max-width: 800px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.robuste-header {
    text-align: center;
    margin-bottom: 40px;
}

.robuste-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.password-input-container {
    margin-bottom: 20px;
}

.password-input-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
}

#password-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-primary);
}

#password-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    opacity: 1;
}

.toggle-btn svg {
    width: 20px;
    height: 20px;
}

.char-count {
    margin-top: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
}

.checkbox-container {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.score-container {
    margin-bottom: 30px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.score-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-bar-container {
    width: 100%;
    height: 24px;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #ef4444 0%, 
        #f59e0b 25%, 
        #eab308 50%, 
        #84cc16 75%, 
        #10b981 100%);
    border-radius: 12px;
    transition: width 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.feedback-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feedback-item.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.feedback-item.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.feedback-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pwned-status {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.pwned-status.checking {
    background: rgba(37, 99, 235, 0.1);
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

.pwned-status.error {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.pwned-status.pwned {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--error-color);
    font-weight: 600;
}

.robuste-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    background: none;
    border: none;
    color: #104041;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.footer-link:hover {
    color: #0d3233;
    border-bottom-color: #104041;
}

.separator {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    margin-bottom: 20px;
}

.info-section {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

.info-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-section p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-section ul {
    margin-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.info-section li {
    margin-bottom: 6px;
}

.info-section strong {
    color: var(--text-primary);
}

.disclaimer {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.copyright p {
    margin: 0;
}

@media (max-width: 640px) {
    .robuste-content-wrapper {
        padding: 24px;
    }

    .robuste-header h1 {
        font-size: 1.5rem;
    }

    .score-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        font-weight: bold;
    }

    .separator {
        display: none;
    }
}

