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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

/* Estilos del Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #5a4fcf;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilos del Dashboard */
.dashboard-container {
    min-height: 100vh;
    background: #f5f5f5;
}

header {
    background: #333;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c82333;
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-generator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-generator h2 {
    margin-bottom: 30px;
    color: #333;
}

.form-container {
    margin-bottom: 30px;
}

.form-container input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.btn-generate {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-generate:hover {
    background: #218838;
}

#result-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

#result-container h3 {
    margin-bottom: 15px;
    color: #555;
}

.url-display, .iframe-display {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.url-display input, .iframe-display textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    background: #f8f9fa;
}

.btn-copy {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-copy:hover {
    background: #0056b3;
}

#preview-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background: #f8f9fa;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .url-display, .iframe-display {
        flex-direction: column;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Estilos para el enlace de descarga */
.download-link-display {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.download-link-display input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    background: #f8f9fa;
}

/* Asegurar que todos los displays tengan el mismo estilo */
.url-display, .iframe-display, .download-link-display {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.url-display input, 
.iframe-display textarea, 
.download-link-display input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    background: #f8f9fa;
}
