/* General Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main container for content */
.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: #0056b3;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Form Styling */
form {
    margin-top: 20px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.2s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Links and Navigation */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.nav-links {
    margin: 20px 0;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    text-align: center;
}

.nav-links a {
    margin: 0 10px;
    font-weight: bold;
}

/* Alert and Info Messages */
.alert, .info-box {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Comments Section */
.comment-box {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.comment {
    background-color: #f9f9f9;
    border: 1px solid #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    word-wrap: break-word; /* Prevents long strings from breaking layout */
}

.comment strong {
    color: #0056b3;
}

/* Horizontal Rule */
hr {
    border: 0;
    height: 1px;
    background-color: #e9ecef;
    margin: 30px 0;
}

/* CAPTCHA Styling */
.captcha-box {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px dashed #ccc;
    margin-bottom: 15px;
    text-align: center;
}

.captcha-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 5px;
    color: #0056b3;
    text-decoration: line-through;
    text-decoration-color: #333;
}