/* Varu00e1veis CSS */
:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb, #2575fc);
    --secondary-gradient: linear-gradient(135deg, #4776E6, #8E54E9);
    --accent-color: #8a2be2;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --bg-primary: #0f0c29;
    --bg-secondary: rgba(255, 255, 255, 0.08);
    --bg-tertiary: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --password-color: #f472b6;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 9999px;
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --font-family: 'Inter', sans-serif;
}

/* Animau00e7u00f5es */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-.895 3-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm63 31c1.657 0 3-.895 3-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM34 90c1.657 0 3-.895 3-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm56-76c1.657 0 3-.895 3-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.03)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.header-nav a:hover {
    color: var(--text-primary);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-fast);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Estilos para u00edcones de compartilhamento */
.share-icons {
    display: flex;
    gap: 0.8rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}

.share-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-button:hover {
    transform: translateY(-3px);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

#shareEmail:hover {
    color: #ea4335;
}

#shareWhatsApp:hover {
    color: #25D366;
}

/* Conteu00eaner principal */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.8s ease-out;
}

/* Cabeu00e7alho da ferramenta */
.tool-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.tool-badge {
    background: var(--primary-gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-full);
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
    box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
}

/* Gerador de Senhas */
.password-generator {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 992px) {
    .password-generator {
        grid-template-columns: 1fr 1fr;
    }
    
    .password-display-panel {
        grid-column: 1 / -1;
    }
}

/* Painu00e9is */
.password-display-panel,
.options-panel,
.requirements-panel {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
    overflow: hidden;
}

.password-display-panel:hover,
.options-panel:hover,
.requirements-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Painel de exibiu00e7u00e3o de senha */
.password-display {
    padding: 1.5rem;
    text-align: center;
}

.password-display-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.password-icon {
    font-size: 1.5rem;
    color: var(--password-color);
    background: rgba(244, 114, 182, 0.1);
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
}

.password-display-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.password-value {
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    word-break: break-all;
    margin-bottom: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Au00e7u00f5es de senha */
.password-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem 1.5rem;
}

/* Botu00f5es */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn i {
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(106, 17, 203, 0.4);
}

/* Medidor de fora */
.strength-meter-container {
    padding: 0 1.5rem 1.5rem;
}

.strength-meter {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* Tempo de quebra */
.crack-time {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-style: italic;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* Cabeu00e7alho do painel */
.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-icon {
    font-size: 1.3rem;
    color: var(--info-color);
    background: rgba(59, 130, 246, 0.1);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
}

.panel-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.panel-content {
    padding: 1.5rem;
}

/* Opu00e7u00f5es */
.option-group {
    margin-bottom: 1.5rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.option-subheader {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Controle de comprimento */
.length-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.length-slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.length-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    outline: none;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.length-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
}

.length-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-family);
    text-align: center;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    color: var(--text-secondary);
}

.tooltip i {
    font-size: 1.2rem;
}

.tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: var(--border-radius-md);
    padding: 0.8rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Opu00e7u00f5es de caracteres */
.character-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.character-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.character-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.character-option:hover .checkbox-custom {
    background-color: rgba(255, 255, 255, 0.2);
}

.character-option input:checked ~ .checkbox-custom {
    background-color: var(--accent-color);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.character-option input:checked ~ .checkbox-custom:after {
    display: block;
}

.option-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Lista de requisitos */
.requirements-list {
    list-style: none;
    margin-bottom: 2rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.requirement-item .req-icon {
    color: var(--error-color);
    font-size: 1.1rem;
}

.requirement-item.valid .req-icon {
    color: var(--success-color);
}

.requirement-item.valid {
    color: var(--text-primary);
}

/* Dicas de segurana */
.security-tips {
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
}

.security-tips h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tips-list {
    list-style: none;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item i {
    color: var(--success-color);
    margin-top: 0.2rem;
}

/* Feedback de cu00f3pia */
.copy-feedback {
    display: none;
}

.btn.copied .button-text {
    display: none;
}

.btn.copied .copy-feedback {
    display: inline;
    color: var(--success-color);
}

/* Notificau00e7u00e3o de cu00f3pia */
.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 1000;
}

.copy-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 30px;
}

.copyright {
    margin-bottom: 0.5rem;
}

.version {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    .container {
        width: 95%;
        margin: 1.5rem auto;
        gap: 1.5rem;
    }
    
    .tool-title {
        font-size: 2rem;
    }
    
    .password-actions {
        flex-direction: column;
    }
    
    .character-options {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .tool-title {
        font-size: 1.8rem;
    }
    
    .password-value {
        font-size: 1.4rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}
