* {
    box-sizing: border-box;
}

/* ===== BASE ===== */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f8fafc;
    color: #1f2933;
    line-height: 1.6;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
}

.hero p {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== BLOG ===== */
.blog h2,
.generator h2 {
    margin-bottom: 15px;
}

.blog h3 {
    margin-top: 25px;
}

.blog ul {
    padding-left: 20px;
}

.blog li {
    margin-bottom: 8px;
}

.highlight {
    background: #e0f2fe;
    border-left: 4px solid #38bdf8;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

/* ===== GENERATOR ===== */
.generator {
    margin-top: 60px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.output-label {
    font-weight: 600;
}

/* ===== OUTPUT ===== */
.output-group {
    display: flex;
    gap: 10px;
    margin: 10px 0 15px;
}

/* Input com ícone */
.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 44px 12px 12px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

/* Ícone refresh dentro do input */
.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: #64748b;
    user-select: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.input-icon:hover {
    color: #2563eb;
    transform: translateY(-50%) rotate(90deg);
}

/* Botão copiar */
#copyBtn {
    padding: 12px 18px;
    background: #2563eb;
    border: none;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

#copyBtn:hover {
    background: #1d4ed8;
}

/* ===== FORÇA ===== */
.strength {
    margin-bottom: 25px;
}

.strength-bar {
    width: 100%;
    height: 10px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 20%;
    min-width: 20px;
    background-color: #dc2626;
    border-radius: 999px;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.strength-label {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #dc2626;
}

/* ===== CONTROLS ===== */
.controls {
    margin-bottom: 20px;
}

.controls input[type="range"] {
    width: 100%;
    margin-top: 8px;
}

/* ===== OPTIONS ===== */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.options label {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===== NOTE ===== */
.note {
    font-size: 0.9rem;
    color: #475569;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    color: #64748b;
}
