/* Common container styling */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.form-box {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure all inputs span the form's width */
.form-box .form-control {
    width: 100%;
}

    /* Error message styling */
    .form-box .error-message {
        color: #dc3545; /* Bootstrap's danger color for consistency */
        font-size: 0.9rem; /* Slightly smaller font for subtlety */
        margin-top: 0.2rem;
        text-align: center; /* Centers the text */
    }

/* Form field focus styles */
.form-box .form-floating .form-control:focus {
    border: 1px solid black;
    outline: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in;
}

/* Button styling */
.form-box .btn-primary {
    background-color: transparent;
    border: 1px solid black;
    color: black;
    border-radius: 10px;
    padding: 0.1rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .form-box .btn-primary:focus {
        outline: none;
        border: 1px solid black;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    }

    .form-box .btn-primary:hover {
        background-color: black;
        color: #fff;
        border-color: #007acc;
        box-shadow: 0 0 8px rgba(0, 122, 204, 0.5);
    }

/* Vertical space divider */
.form-vertical-space {
    height: 2px;
}

/* Alert styles */
.alert {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

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

/* Expanded width for contact form */
.contact-form-box {
    max-width: 100%;
}
.log-form-box {
    max-width: 100%;
    align-items: stretch;
}

/* Log markdown styles */
.markdown-body {
    width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.markdown-body pre {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Manage Users table input/button layout */
.manage-users-password {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manage-users-password input {
    flex: 1;
}

/* Manage Users layout */
.manage-users-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.manage-user-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.75rem;
}

.manage-user-email {
    font-weight: bold;
}

.manage-user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.manage-user-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
