/* ------------------------------ Transitions ------------------------------ */

body, 
.login-box button {
    transition: background-color 1s, color 1s;
}

.login-box,
.offcanvas,
.container,
.input-group-text {
    transition: background-color 1s;
}

/* ------------------------------ General ------------------------------ */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.logo {
    width: 100%;
    max-width: 400px;
    transition: opacity 0.5s ease-in-out;
}

.login-box input {
    width: 90%;
}

#theme-toggle {
    margin-left: 10px;
    margin-top: 10px;
}

.input-group-text{
    transition: background-color 1s;
    background-color: #0056B8;
    color: white;
    border-color: transparent;
}

#success-message, #warning-message, #error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    z-index: 1050;
    display: none;
    width: auto;
    max-width: 90%;
    text-align: center;
}

#error-message {
    background-color: #dc3545;
}

.delete-note-btn {
    background-color: transparent;
    border-color: transparent;
    color: #dc3545;
    font-weight: bold;
}


/* ------------------------------ Body Themes ------------------------------ */

body.light-theme {
    background-color: #e4e4e4;
    height: 100vh;
    width: 100vw;
}

body.dark-theme {
    background-color: #2E2E2E;
    height: 100vh;
    width: 100vw;
    color: #e4e4e4;
}

/* ------------------------------ Login Box Themes ------------------------------ */

body.light-theme .login-box {
    background-color: white;
    max-width: 400px;
}

body.dark-theme .login-box {
    background-color: #5e5e5e;
    max-width: 400px;
}

body.light-theme .login-box button {
    background-color: #0056B8;
    color: white;
}

/* ------------------------------ OffCanvas Themes ------------------------------ */

body.light-theme .offcanvas {
    background-color: #e4e4e4;
}

body.dark-theme .offcanvas {
    background-color: #2E2E2E;
}

/* ------------------------------ Container Themes ------------------------------ */

body.light-theme .color-container {
    background-color: white;
}

body.dark-theme .color-container {
    background-color: #5e5e5e;
}

/* ------------------------------ Input Group Theme ------------------------------ */

body.light-theme .input-group-text {
    background-color: #0056B8;
    color: white;
}

body.dark-theme .input-group-text {
    background-color: #0056B8;
    color: white;
}

/* ------------------------------ Percentage Spans ------------------------------ */

[id$="_percentage"] {
    min-width: 4em; /* Matches the input-group-text width */
    text-align: center;
}