/* Root variables for theme colors */
:root {
    --font-color: #333333; /* Softer black */
    --button-color: #6f42c1;
    --button-hover-color: #5a359c;
    --button-text-color: white;
    --input-bg-color: #ffffff;  /* White for cleaner form */
    --input-text-color: #333333;
    --input-border-color: #cccccc;
    --body-bg-color: #f8f9fa;   /* Subtle grey for body background */
    --container-bg-overlay: #ffffff; /* Remove dark overlay */
    --nav-hover-bg: rgba(111, 66, 193, 0.1); /* Light purple highlight */
    --nav-hover-shadow: none; /* Remove shadow */
    --error-bg-color: #f8d7da;
    --error-border-color: #f5c2c7;
    --error-text-color: #842029;
    --header-bg-color: #e9ecef;
}

/* This is needed to ensure the dash app is transparent but with the global background color */
/* This has to be in here as the dash app gets its css from this file not any of the children windows*/
.dash-transparent {
    background-color: var(--body-bg-color) !important;
}

/* This is needed for login pages , password reset etc. */
.d-flex.flex-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
}

/* Primary Button Styling */
.btn-primary {
    background-color: var(--button-color);
    color: var(--button-text-color);
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.1); /* subtle dark border */
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease;
    max-width: var(--common-button-max-width);
}

.btn-primary:hover {
    background-color: var(--button-hover-color);
    border-color: rgba(0, 0, 0, 0.2); /* slightly darker on hover */
}

/* Primary Button Styling for small buttons */
.btn-primary-sm {
    width: auto;
    max-width: none;
    padding: 6px 14px;
    font-size: 0.95rem;
    display: inline-block;
}

/* Input Fields */
input[type="text"],
input[type="password"],
input[type="email"],
.form-input {
    background-color: var(--input-bg-color);
    color: var(--input-text-color);
    border: 1px solid var(--input-border-color);
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    max-width: var(--common-button-max-width);
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
.form-input:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1); /* soft purple focus ring */
}
