/*
Theme Name: Compact Bootstrap
Theme URI:
Author: Laho
Author URI: 
Description: A compact, boxed, sidebar-less, and footer-less theme using Bootstrap 5.
Version: 1.19
License: MIG
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compact-bootstrap
tags: one-column, custom-colors, custom-menu, featured-images, full-width-template
*/

body {
    background-color: #f0f2f5;
    color: #333;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#page-wrapper {
    max-width: 98%;
    margin: 7px 2px 7px 2px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Clear floats */
}

/* Boxed layout for PC */
@media (min-width: 992px) {
    #page-wrapper {
        max-width: 1140px;
        margin: 10px auto;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

/* Minimize Bootstrap gutters/padding where needed */
.container-fluid {
    padding-left: 5px;
    padding-right: 5px;
}

/* Compact specific adjustments */

.site-content {
    padding: 5px 5px;
}

/* Typography adjustments for compactness */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

p {
    margin-bottom: 0.75rem;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Style for Gutenberg Login/Out Block */
.wp-block-loginout {
    margin: 1rem 0;
}

/* Revert to text link for logout button */
.wp-block-loginout a {
    display: inline;
    padding: 0;
    background: none;
    border: none;
    color: #0d6efd;
    text-decoration: none;
    font-weight: normal;
}

.wp-block-loginout a:hover {
    text-decoration: underline;
    background: none;
    color: #0056b3;
}

/* Login Form Block Styling - Robust Selectors */
.wp-block-loginout form,
#loginform,
.login-form,
form.login {
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
    padding: 2rem;
    border: 1px solid #e1e4e8;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.wp-block-loginout label,
#loginform label,
.login-form label,
form.login label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.wp-block-loginout input[type="text"],
.wp-block-loginout input[type="password"],
#loginform input[type="text"],
#loginform input[type="password"],
.login-form input[type="text"],
.login-form input[type="password"],
#user_login,
#user_pass {
    display: block;
    width: 100%;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-bottom: 1rem;
    box-sizing: border-box;
    height: auto !important;
}

.wp-block-loginout input[type="text"]:focus,
.wp-block-loginout input[type="password"]:focus,
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#user_login:focus,
#user_pass:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.wp-block-loginout input[type="submit"],
#loginform input[type="submit"],
.login-form input[type="submit"],
form.login input[type="submit"],
#wp-submit {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: all .15s ease-in-out;
    width: 100%;
    margin-top: 10px;
}

.wp-block-loginout input[type="submit"]:hover,
#loginform input[type="submit"]:hover,
#wp-submit:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}

/* Hide WordPress Logo and Language Switcher on Login Page */
body.login h1 a,
body.login .language-switcher {
    display: none !important;
}