body {
    background-color: #1a1a1a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.intro-text {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #00ff00;
    box-shadow: 0 2px 4px rgba(0, 255, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
}

.intro-text h2 {
    color: #00ff00;
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.intro-text h3 {
    color: #00dd00;
    margin-top: 25px;
}

.intro-text h4 {
    color: #00cc00;
    margin-bottom: 10px;
}

.intro-text p {
    line-height: 1.6;
    color: #cccccc;
}

.intro-text ul {
    color: #cccccc;
    padding-left: 20px;
}

.intro-text li {
    margin: 8px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.intro-text li:nth-child(1) { animation-delay: 0.2s; }
.intro-text li:nth-child(2) { animation-delay: 0.4s; }
.intro-text li:nth-child(3) { animation-delay: 0.6s; }
.intro-text li:nth-child(4) { animation-delay: 0.8s; }

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
    perspective: 1000px;
}

.use-case {
    background-color: #333;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.use-case:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.use-case ul {
    margin: 0;
}

.password-container {
    text-align: center;
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

#password {
    background-color: #333;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px;
    width: 80%;
    font-size: 18px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#password:focus {
    animation: glowing 1.5s infinite;
}

#generate-button {
    background-color: #006600;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#generate-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

#generate-button:active {
    transform: scale(0.95);
}

.options-container {
    background-color: #333;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.length-control {
    margin-bottom: 15px;
}

.checkbox-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: left;
}

.checkbox-container label {
    transition: all 0.3s ease;
}

.checkbox-container label:hover {
    color: #00ff00;
    transform: translateX(5px);
}

.strength-indicator {
    margin: 10px 0;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.strength-indicator.weak {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.weak { color: #ff4444; }
.medium { color: #ffaa00; }
.strong { color: #2ecc71; }
.very-strong { color: #00ff00; }

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    transition: transform 0.3s ease-in-out;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.hint {
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
}

input[type="range"] {
    width: 100%;
    background-color: #444;
}

input[type="checkbox"] {
    margin-right: 8px;
}

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

@keyframes glowing {
    0% { box-shadow: 0 0 5px #00ff00; }
    50% { box-shadow: 0 0 20px #00ff00; }
    100% { box-shadow: 0 0 5px #00ff00; }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Efecto de matriz para el fondo */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Efecto hover para los casos de uso */
.use-cases {
    perspective: 1000px;
}

.use-case {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Efecto de brillo para los títulos */
h1, h2, h3, h4 {
    position: relative;
    overflow: hidden;
}

h1::after, h2::after, h3::after, h4::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-selector select {
    background-color: #2a2a2a;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background-color: #333;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.language-selector select option {
    background-color: #1a1a1a;
    color: #00ff00;
}
