/* ============================================= */
/*              TOOLS.CSS – FINAL MASTER VERSION */
/*      Password Checker + Quiz + Audit + Breach  */
/* ============================================= */

.tool-container {
    min-height: 100vh;
    padding-top: 120px;
    background: radial-gradient(circle at 30% 70%, rgba(0, 198, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 45, 117, 0.08) 0%, transparent 50%);
}

.tool-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeUp 1s ease-out;
}

.tool-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.tool-hero p {
    font-size: 1.1rem;
    color: rgba(230, 247, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.security-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 198, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 198, 255, 0.3);
    font-weight: 600;
    color: #00c6ff;
}

.tool-content {
    background: rgba(42, 50, 75, 0.5);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 198, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

/* ==================== PASSWORD CHECKER ==================== */
.password-input-container {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.password-input {
    flex: 1;
    min-width: 280px;
    padding: 1.1rem 1.4rem;
    font-size: 1.1rem;
    background: rgba(10, 14, 23, 0.9);
    border: 2px solid #00c6ff;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: #0072ff;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
}

.password-strength-container {
    margin: 2rem 0;
}

.strength-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.score-badge {
    background: rgba(0, 198, 255, 0.2);
    color: #00c6ff;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 700;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

.password-strength-bar {
    width: 100%;
    height: 16px;
    background: #2a324b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.6s ease, background 0.4s ease;
}

.strength-weak    { background: linear-gradient(90deg, #ff2d75, #ff6b6b); }
.strength-fair    { background: linear-gradient(90deg, #ff6b6b, #ffd93d); }
.strength-good    { background: linear-gradient(90deg, #ffd93d, #a8e6a1); }
.strength-strong  { background: linear-gradient(90deg, #6bcf7f, #00c6ff); }
.strength-very-strong {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    animation: pulse 2s infinite;
}

.entropy-display {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 14, 23, 0.7);
    border-radius: 12px;
    margin: 1.5rem 0;
    font-size: 1.05rem;
    color: #e6f7ff;
}

.entropy-display strong {
    color: #00c6ff;
    font-family: 'Orbitron', sans-serif;
}

.password-metrics,
.strength-feedback,
.password-suggestions,
.security-tips {
    margin-top: 2.5rem;
}

.password-metrics h3,
.strength-feedback h3,
.password-suggestions h3,
.security-tips h3 {
    margin-bottom: 1.2rem;
    color: #00c6ff;
    font-size: 1.4rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: rgba(10, 14, 23, 0.8);
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0, 198, 255, 0.2);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: #00c6ff;
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.2);
}

.metric-value {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #00c6ff;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(230, 247, 255, 0.8);
    margin-top: 0.5rem;
}

.feedback-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feedback-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    background: rgba(10, 14, 23, 0.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.feedback-list li:hover {
    background: rgba(0, 198, 255, 0.1);
    transform: translateX(5px);
}

.feedback-list i {
    width: 24px;
    text-align: center;
}

.fa-check { color: #6bcf7f; }
.fa-exclamation-triangle,
.fa-times { color: #ff2d75; }

.feedback-placeholder {
    opacity: 0.7;
    font-style: italic;
    justify-content: center;
}

.password-suggestions {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 198, 255, 0.3);
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.suggestion-card {
    background: rgba(10, 14, 23, 0.9);
    padding: 1.8rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 198, 255, 0.2);
    transition: all 0.4s ease;
}

.suggestion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 198, 255, 0.15);
    border-color: #00c6ff;
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.suggestion-header i {
    font-size: 1.8rem;
    color: #00c6ff;
}

.suggestion-header h4 {
    margin: 0;
    color: #00c6ff;
}

.suggestion-example {
    font-family: 'Courier New', monospace;
    background: rgba(0, 198, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 1.1rem;
    color: #00c6ff;
    border: 1px dashed rgba(0, 198, 255, 0.3);
}

.security-tips h3 { margin-bottom: 1.2rem; color: #00c6ff; }
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 14, 23, 0.7);
    border-radius: 12px;
    border-left: 4px solid #00c6ff;
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(0, 198, 255, 0.15);
    transform: translateX(8px);
}

.tip-item i {
    font-size: 1.5rem;
    color: #00c6ff;
}

/* ==================== QUIZ, AUDIT, BREACH (UNCHANGED & ENHANCED) ==================== */
.quiz-question, .audit-item, .breach-result, .score-display {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(10, 14, 23, 0.8);
    border-radius: 12px;
    border-left: 4px solid #00c6ff;
}

.quiz-options { display: grid; gap: 1rem; margin: 1.5rem 0; }
.quiz-option {
    padding: 1rem;
    background: rgba(42,  50, 75, 0.5);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover { border-color: #00c6ff; background: rgba(0, 198, 255, 0.1); }
.quiz-option.selected { border-color: #00c6ff; background: rgba(0, 198, 255, 0.2); }
.quiz-option.correct { border-color: #6bcf7f; background: rgba(107, 207, 127, 0.2); }
.quiz-option.incorrect { border-color: #ff2d75; background: rgba(255, 45, 117, 0.2); }

.audit-checklist { display: flex; flex-direction: column; gap: 1rem; }
.audit-item { cursor: pointer; display: flex; align-items: center; gap: 1.5rem; position: relative; overflow: hidden; }
.audit-item::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #00c6ff; transition: all 0.3s; }
.audit-item:hover { transform: translateY(-2px); border-color: #00c6ff; box-shadow: 0 5px 15px rgba(0, 198, 255, 0.2); }
.audit-item.completed { border-color: #6bcf7f; background: rgba(107, 207, 127, 0.1); }
.audit-item.completed::before { background: #6bcf7f; width: 6px; }

.audit-icon { width: 50px; height: 50px; background: rgba(0, 198, 255, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #00c6ff; }
.audit-item.completed .audit-icon { background: rgba(107, 207, 127, 0.2); color: #6bcf7f; }

.audit-status {
    width: 40px; height: 40px; border: 2px solid #2a324b; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(42, 50, 75, 0.5); transition: all 0.3s ease;
}
.audit-item.completed .audit-status { background: #6bcf7f; border-color: #6bcf7f; color: white; }

.progress-bar { width: 100%; height: 12px; background: #2a324b; border-radius: 6px; overflow: hidden; margin: 1rem 0; }
.progress-fill { height: 100%; background: linear-gradient(45deg, #00c6ff, #0072ff); transition: width 0.5s ease; width: 0%; }

.breach-safe { border-left-color: #6bcf7f; background: rgba(107, 207, 127, 0.1); }
.breach-compromised { border-left-color: #ff2d75; background: rgba(255, 45, 117, 0.1); }

.score-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Back to Home & Animations */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 3rem auto 2rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: #00c6ff;
    border: 2px solid #00c6ff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background: rgba(0, 198, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.3);
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 768px) {
    .tool-content { padding: 2rem 1.5rem; }
    .password-input-container { flex-direction: column; }
    .entropy-display { flex-direction: column; text-align: center; }
    .metrics-grid, .suggestion-grid, .tips-grid { grid-template-columns: 1fr; }
    .audit-item { flex-direction: column; text-align: center; }
    .audit-status { position: static; }
}