* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #252d4d 0%, #241138 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 {
    text-align: center;
    color: #333;
    padding: 30px 20px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
}

/* Code Section */
.code-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
}

.code-example {
    background: #2c3e50;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.code-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #34495e;
    color: white;
}

.code-header .icon {
    font-size: 20px;
    margin-right: 10px;
}

.code-header h3 {
    margin: 0;
    font-size: 16px;
}

.code-example pre {
    margin: 0;
    padding: 20px;
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
}

.code-example code {
    background: none;
    color: inherit;
}

/* Form Section */
.form-section {
    padding: 30px;
    background: white;
}

.form-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.vulnerable {
    background: #e74c3c;
    color: white;
}

.btn.vulnerable:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn.secure {
    background: #27ae60;
    color: white;
}

.btn.secure:hover {
    background: #229954;
    transform: translateY(-2px);
}

.result-area {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e1e8ed;
    min-height: 100px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.result-area.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.result-area.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.result-area.info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .code-section {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .container {
        margin: 10px;
        border-radius: 10px;
    }
} 