/* Global Styles */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #0072C6;
    --primary-color-hover: #005A9E;
    --background-color: #f5f7fa;
    --text-color: #333;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Header and Footer */
header,
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

footer {
    font-size: 14px;
    margin-top: 40px;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Form Styles */
section {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="password"],
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--text-color);
}

input[type="password"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

textarea {
    resize: vertical;
}

.security-notice {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Button Styles */
button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: var(--primary-color-hover);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.button-group button {
    flex: 1;
    min-width: 150px;
}

.output-section pre {
    overflow-x: auto;
    word-wrap: normal;
    white-space: pre;
}

/* Responsive Design */
@media (max-width: 600px) {
    main {
        padding: 0 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    label {
        font-size: 16px;
    }

    input[type="password"],
    input[type="text"],
    select,
    textarea {
        font-size: 16px;
        padding: 10px;
    }

    button {
        font-size: 16px;
        padding: 12px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }
}
