/* public/css/reset.css */

/* Reset margins and padding for all elements */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li {
    margin: 0;
    padding: 0;
    font-family: "Montserrat";
    color: var(--main-text) !important;
}

/* Apply a universal box-sizing to ensure consistent sizing behavior */
*,
*::before,
*::after {
    box-sizing: border-box;
}

td {
    font-size: smaller;
}

a {
    font-size: small;
    text-decoration: none !important;
}

/* Reset list styles */
ul,
ol {
    list-style: none;
}

.badge.bg-primary {
    background-color: var(--golden-solid) !important;
}

.oso-a {
    color: var(--golden-solid);
}

.oso-a:hover {
    color: var(--gold-dark-solid);
}

/* .oso-a a {
    color: var(--golden-solid) !important;
} */

.modal-content {
    padding: 5%;
    background: var(--background-level-4) !important;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2vh;
    column-gap: 2vh;
}

.glass-effect {
    background: rgba(14, 14, 14, 0.301) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.glass-effect .form-control {
    background: rgba(29, 29, 29, 0.15) !important;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
}

.glass-effect .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.icon-text-group {
    gap: 4px; /* Custom spacing between icon and text */
}

.ask-button {
    color: black !important;
    display: flex;
    justify-content: center;
    width: 60%;
    background: var(--golden-solid);
    border-radius: 8px;
    padding: 3%;
}

.cancel-button {
    background-color: rgb(252, 113, 113);
}

.cancel-button:hover {
    background-color: rgb(179, 69, 69) !important;
}

.ask-button:hover {
    background: var(--gold-dark-solid);
}

html,
body {
    background: var(--background-level-1) !important;
}

.bg-800 {
    background: var(--background-800) !important;
}

.bg-900 {
    background: var(--background-900) !important;
}

.btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-round {
    border-radius: 50px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.profile-photo {
    aspect-ratio: 1/1;
    width: 40%;
    border-radius: 50%; /* Makes the frame circular */
    overflow: hidden; /* Hides the parts of the image outside the circular frame */
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    background-color: #ff3e3e; /* Background color of the circular frame */
}

.unread-lighter {
    display: flex;
    width: 1vh;
    height: 100%;
    background-color: var(--primary-color-lighter);
}

.notification-pop {
    display: inline;
    position: fixed !important;
    height: 2vh !important;
    width: 2vh !important;
    background-color: red;
    right: 0 !important;
    bottom: 0 !important;
    margin-right: 7.5vw;
    margin-bottom: 97vh;
    border-radius: 50%;
    z-index: 2000 !important;
}

.hidden {
    display: none !important;
}

.right-selector {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.btn-primary {
    background-color: var(--golden-solid);
    outline: none !important;
    border: none !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--golden-solid);
    opacity: 0.5; /* Standard way to show "faded" state */
    pointer-events: none; /* Prevents click/hover events */
    cursor: not-allowed !important; /* Shows the "circle-slash" cursor */
    box-shadow: none; /* Removes any active shadows */
}

.btn-primary:hover {
    background-color: var(--gold-dark-solid);
    /* Other button styles */
}

.btn-outline-primary {
    outline-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    /* Other button styles */
}
.btn-outline-primary:hover {
    background-color: var(--primary-color-hover);
    /* Other button styles */
}

.custom-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: -1%;
}

.label-text {
    color: black;
}

.text-bold {
    font-weight: 700;
}

.main-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    outline: inherit;
    outline: none;
    border: 1px solid transparent;
}

.device-photo {
    aspect-ratio: 1/1;
    width: 100%;
    overflow: hidden; /* Hides the parts of the image outside the circular frame */
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    background-color: #f0f0f000; /* Background color of the circular frame */
}

.device-photo img {
    max-width: 100%;
}

.profile-photo-card {
    aspect-ratio: 1/1;
    width: 90%;
    border-radius: 50%; /* Makes the frame circular */
    overflow: hidden; /* Hides the parts of the image outside the circular frame */
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    background-color: #f0f0f0; /* Background color of the circular frame */
}

.profile-photo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Maintain image aspect ratio and cover the circular frame */
}

.profile-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Maintain image aspect ratio and cover the circular frame */
}

a:hover {
    text-decoration: none;
}

.li-item-icon {
    font-size: large;
    display: flex;
    margin-top: -3%;
    height: 100%;
    width: 20%;
    align-items: center;
    justify-content: center;
}

.li-item-title {
    font-size: medium;
    display: flex;
    height: 100%;
    width: 80%;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.main-content-wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 20vw;
    width: 80vw;
    height: 100vh;
}

.top-nav-bar-wrapper {
    display: flex;
    width: 100%;
    height: 7%;
    align-items: center;
    justify-content: space-between;
}

.top-nav-bar-left-side {
    margin-left: 1vw;
    display: flex;
    width: 50%;
    flex-direction: column;
}

.page-nav-container {
    margin-top: -0.5%;
    font-size: 0.7rem !important;
    color: var(--golden-solid) !important;
    z-index: 1000;
}

.page-nav-container a {
    font-size: 0.7rem !important;
    color: var(--golden-solid) !important;
}

.page-nav-container a:hover {
    color: var(--gold-dark-solid);
}

.page-title-container {
    display: flex;
    align-items: flex-end;
    height: 80%;
    width: 100%;
    color: var(--primary-text-color);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.toolbar-container {
    display: flex;
    height: 100%;
    width: 25%;
}

.toolbar-item-container {
    display: flex;
    width: 90%;
    height: 90%;
    justify-content: flex-end;
    align-items: center;
}

.toolbar-item {
    display: flex;
    width: 4vw;
    height: 4vw;
    -webkit-text-stroke: 1px;
    font-size: medium;
    color: var(--golden-solid);
    margin-left: 1%;
    margin-right: 1%;
    justify-content: center;
    align-items: center;
}

.toolbar-item:hover {
    text-decoration: none;
    color: var(--gold-dark-solid);
}

.content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 91%;
}

.main-content {
    display: flex;
    position: relative;
    flex-direction: column;
    overflow: auto;
    align-items: center;
    width: 98%;
    height: 100%;
    padding: 1.5%;
    border-radius: 8px;
    background: var(--background-level-2);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

.main-content::-webkit-scrollbar {
    display: none;
}

.main-content-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.floating-button {
    position: fixed;
    bottom: 10vh;
    right: 3vw;
    z-index: 1000; /* Ensure the button appears on top of other elements */
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    text-align: center;
    line-height: 50px;
    box-shadow: 0px 4px 20px rgba(10, 10, 10, 0.1);
    text-decoration: none;
}

.spacer {
    margin-bottom: 50vh;
}

.profile-photox {
    max-width: 30px;
    border-radius: 50%;
    /* Adjust the maximum width as needed */
    max-height: 30px;
    /* Adjust the maximum height as needed */
    width: auto;
    height: auto;
}

.top-content-container {
    display: flex;
    width: 100%;
    height: 5%;
    align-items: center;
    justify-content: space-between;
}

.custom-top-content-header {
    font-size: 1.2rem;
    font-weight: 700;
}

.device-status {
    font-size: 0.8rem;
}

.button:hover {
    background-color: var(--primary-color-hover);
    color: black;
}

.mobile-screen {
    display: none !important;
}

.card-main-container {
    display: flex;
    flex-direction: row;
    background-color: var(--golden-gradient);
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.card-main-container a {
    text-decoration: none;
    color: #305270;
}

.card-main-container h5 {
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.device-card {
    display: flex;
    height: 18vh;
    padding: 1%;
    padding-top: 2%;
    flex-direction: row;
    width: 32%;
    border-radius: 8px;
    background: var(--background-level-4);
    margin-right: 1%;
    margin-bottom: 3%;
    color: white !important;
}

.device-card:hover {
    color: white !important;
    background: var(--gold-dark-solid) !important;
}

.card-icon {
    height: 100%;
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-self: center;
}

.card-main-content {
    margin-left: 2%;
}

small {
    color: rgba(255, 255, 255, 0.356);
    font-size: xx-small;
}

/* Add this to your CSS file or in a <style> tag */
.alertx-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.alertx {
    height: auto;
    width: 30vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1% 20px;

    background: linear-gradient(135deg, #2e7d32ef 0%, #1b5e1fe3 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #e8f5e9;
    font-size: 0.95rem;
    font-weight: 500;

    border-radius: 10px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    position: relative;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.alertx-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.alertx-danger {
    background: rgb(255, 66, 66) !important;
}

.alertx-warning {
    background: rgb(255, 170, 66);
}

.close-btn {
    cursor: pointer;
    font-size: 2rem;
}

.alertx:hover {
    transform: scale(1.05);
}

.user-container {
    display: flex;
    padding: 4%;
    background-color: var(--background-level-3);
    color: white !important;
    border-radius: 10px;
}

.icon-item-container {
    display: flex;
    padding: 2%;
    background-color: var(--background-level-3);
    border-radius: 10px;
}

.user-container:hover {
    background-color: var(--secondary-lighter-color);
}

.user-left-container {
    width: 7%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo-content {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 50%; /* Makes the frame circular */
    overflow: hidden; /* Hides the parts of the image outside the circular frame */
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    background-color: #f0f0f0; /* Background color of the circular frame */
    filter: drop-shadow(6px 5px 10px #0000005b);
}

.profile-photo-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Maintain image aspect ratio and cover the circular frame */
}

.super-spacer {
    display: flex;
    height: 150px !important;
}

.modal {
    background: rgba(0, 0, 0, 0.5);
}
.modal-backdrop {
    display: none;
}

.text-small {
    font-size: small !important;
}

.text-smaller {
    font-size: smaller !important;
}

.form-control {
    background: var(--primary-dark-color);
    border: none !important;
    color: white;
}

.form-control.bg-dark {
    background: var(--input-dark-color) !important;
}

.form-reversed {
    background-color: var(--input-dark-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.288) !important;
}

.form-control:focus {
    color: white;
}

.form-control:disabled {
    color: rgb(131, 131, 131) !important;
}

.dropdown-toggle-icon {
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.dropdown-toggle-icon:hover {
    background-color: #343a40; /* dark hover */
    color: #fff;
}

.dropdown-toggle-icon.show {
    background-color: #2b2f33; /* active state */
    color: #fff;
}

.material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

.hover-shadow {
    transition: all 0.3s ease;
    /* Makes the transition smooth */
}

.hover-shadow:hover {
    background-color: #343a40 !important;
    /* Slightly lighter/different dark gray */
    transform: translateY(-3px);
    /* Subtle lift effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* The actual shadow */
}

/* Optional: Change text color on hover */
.hover-shadow:hover p {
    color: #fff !important;
}
