/* These styles are generated from project.scss. */

.alert-debug {
    color: black;
    background-color: white;
    border-color: #d6e9c6;
}

.alert-error {
    color: var(--error-color, #b94a48);
    background-color: #f2dede;
    border-color: #eed3d7;
}

.form-control:focus {
    box-shadow: var(--input-focus-shadow, 0 0 0 0.2rem rgba(13, 110, 253, 0.25));
}

/* Card soft shadow */
.card {
    border: none;
    border-radius: var(--border-radius, 0.75rem);
}

/* Fix floating labels */
.form-floating > label {
    padding: 0.5rem 0.75rem;
}

/* Body background color for login pages */
body {
    background-color: var(--background-color, #f8f9fa);
    font-family: var(--app-font-family, var(--font-family, 'Poppins', sans-serif)) !important;
}

/* Navbar portal styles will be added later */
/* Base styles for the form */
.card-body {
    padding: var(--card-padding, 30px);
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    font-size: var(--font-size-base, 1rem);
    /*height: 50px;*/
    padding: 10px;
}

.text-light {
    color: var(--text-light, #f0f0f0) !important;
}

.text-muted {
    color: var(--text-muted, #bbb) !important;
}

.text-white {
    color: #ffffff !important;
}

.text-primary {
    color: var(--primary-color, #00aeef) !important;
}

/* Button styles with glow effect */

button.btn-primary,
button[type="submit"].btn-primary {
    background-color: var(--primary-color, #00aeef) !important;
    border-color: var(--primary-color, #00aeef) !important;
}

button.btn-primary:hover {
    background-color: var(--primary-hover, #0095d5) !important;
    border-color: var(--primary-hover, #0095d5) !important;
}

.btn-primary {
    background-color: var(--primary-color, #00aeef);
    border-color: var(--primary-color, #00aeef);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: var(--primary-hover, #009ed5);
    border-color: var(--primary-hover, #009ed5);
    color: #fff;
}

/* Ensure links styled as buttons also look correct */
.btn-primary:visited {
    color: #fff;
}

.btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
    transition: all var(--transition-duration, 0.3s) var(--transition-timing, ease);
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: #333333;
    border-color: #ffffff;
    box-shadow: var(--shadow-button-hover, 0 0 10px 3px rgba(255, 255, 255, 0.6), 0 0 20px 5px rgba(255, 255, 255, 0.4));
}

/* Glow effect on button hover */
.hover-glow:hover {
    box-shadow: var(--shadow-hover, 0 0 10px 2px rgba(255, 255, 255, 0.5), 0 0 20px 5px rgba(255, 255, 255, 0.3));
}

/* Glowing effect on focused inputs */
.form-control:focus {
    border-color: var(--input-focus-border, #4e9fd1);
    box-shadow: var(--input-focus-shadow, 0 0 5px 2px rgba(78, 159, 209, 0.8));
}

.bg-dark {
    background-color: #121212 !important;
}

.bg-transparent {
    background-color: transparent;
}

.card {
    border-radius: var(--border-radius, 20px);
}

/* Custom transition effects */
.transition-all {
    transition: all var(--transition-duration, 0.3s) ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .col-md-4 {
        width: 90% !important;
    }
}

@media (max-width: 576px) {
    .col-md-4 {
        width: 100% !important;
    }
}

/* Add this to your CSS block */
.modal-dialog {
    max-width: 800px;
    margin: 80px auto;
}

.modal-content {
    overflow: visible;
}

.modal-body {
    max-height: none;
    overflow-y: visible;
    padding: 1.5rem;
}

.modal-backdrop {
    opacity: 0.5 !important;
}

/* Ensure the modal is on top */
.modal.show {
    /*z-index: 1050 !important;*/
    display: block !important;
}

/* Simple buttons on white backgrounds (used in QR actions).
   The template uses inline `style="--bb: rgb(...)"` to set the accent color. */
.roamiq-button {
    --roamiq-btn-accent: var(--bb, rgb(0, 204, 113));
    --roamiq-btn-text: rgb(0, 37, 46);

    background: var(--roamiq-btn-accent);
    border: 1px solid var(--roamiq-btn-accent);
    border-radius: 10px;
    color: #fff;
    fill: #fff;

    font-family: var(--brand-font, paralucent, sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    text-align: center;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;

    padding: 0.55rem 0.9rem;
    cursor: pointer;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 50ms ease;
}

.roamiq-button:hover {
    background-color: #fff;
    border-color: var(--roamiq-btn-accent);
    color: var(--roamiq-btn-text);
}

.roamiq-button:focus-visible {
    outline: 2px solid rgba(0, 204, 113, 0.35);
    outline-offset: 2px;
}

.roamiq-button:active {
    transform: translateY(1px);
}

.roamiq-button .roamiq-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.roamiq-button.roamiq-size-sm {
    font-size: 14px;
    line-height: 17px;
    padding: 0.4rem 0.7rem;
    border-radius: 9px;
}
