/* Font imports */
@font-face {
    font-family: Montserrat-Medium;
    src: url(/assets/fonts/Montserrat-Medium.woff2);
}

@font-face {
    font-family: Montserrat-SemiBold;
    src: url(/assets/fonts/Montserrat-SemiBold.woff2);
}

/* Global styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: Montserrat-Medium, sans-serif;
    color: #4B4B4A;
    height: 100%;
    background: linear-gradient(135deg, #004E59 0%, #00898A 100%);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* Header and navigation */
header {
    background-color: #004E59;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 56px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo img.nav-logo {
    height: 40px;
    margin-left: 20px;
}

.site-name {
    font-size: 1.5em;
    color: #FFFFFF;
    font-family: Montserrat-SemiBold, sans-serif;
    margin-left: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5em;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
    margin-right: 20px;
    flex-direction: column;
}

.nav-links li a {
    color: #FFFFFF;
    font-size: 1em;
    padding: 0.5em 1em;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 5px;
    background-color: transparent;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#authAction {
    margin-right: 20px;
}

#authAction a, #authAction button {
    color: #FFFFFF;
    background-color: #00898A;
    padding: 0.5em 1em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#authAction a:hover, #authAction button:hover {
    background-color: #006B6C;
}

#authAction button {
    cursor: pointer;
}

.button-link.disabled {
    background-color: #A0A0A0;
    cursor: not-allowed;
    pointer-events: none;
}

main {
    max-width: 100%;
    margin: 5em auto 2em;
    padding: 0 1em;
    flex-grow: 1;
}

section {
    max-width: 100%;
    background-color: #FFFFFF;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
}

h1, h2 {
    color: #004E59;
}

section ul {
    padding-left: 20px;
}

section ul li {
    margin-bottom: 1em;
}

.home-header {
    display: flex;
    align-items: center;
    margin-bottom: 2em;
}

.home-logo-large {
    height: 100px;
    margin-right: 20px;
}

.home-title h1 {
    font-size: 2.5em;
    margin: 0;
    color: #004E59;
}

.home-title p {
    font-size: 1.25em;
    color: #4B4B4A;
}

.nao-logo-large {
    display: block;
    margin: 2em auto;
    width: 150px;
}

footer {
    background-color: #004E59;
    color: #FFFFFF;
    padding: 1.5em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

footer a {
    color: #FFFFFF;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0em 2em;
    flex-direction: column;
    text-align: center;
}

.footer-left {
    padding-left: 2em;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
    padding-right: 2em;
}

.urg-logo {
    height: 40px;
}

footer p {
    font-size: 0.875em;
    margin: 0;
}

.footer-legal a {
    font-size: 0.7em;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-legal a:hover {
    opacity: 0.8;
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.5);
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

#authAction {
    margin-right: 20px;
}

#authAction a, #authAction button {
    background-color: #A0A0A0;
    color: #D0D0D0;
    border-radius: 50%;
    padding: 0;
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 1.0em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#authAction.logged-in a, #authAction.logged-in button {
    background-color: #00898A;
}

#authAction a:hover, #authAction button:hover {
    background-color: #006B6C;
}

.auth-icon {
    background-image: url("/assets/images/user-icon.svg");
    background-size: cover;
    width: 40px;
    height: 40px;
}

.nav-links li a.active {
    background-color: #006B6C;
    color: #FFFFFF;
    cursor: default;
    pointer-events: none;
    border-radius: 5px;
}

#notebooks-link.disabled {
    background-color: #A0A0A0;
    color: #D0D0D0;
    pointer-events: none;
    cursor: not-allowed;
}

#notebooks-link.enabled {
    background-color: #00898A;
    color: #FFFFFF;
    pointer-events: auto;
    cursor: pointer;
}

blockquote img {
    max-width: 150px;
    height: auto;
    display: inline-block;
}

blockquote h1 {
    font-size: 2.5em;
    color: #004E59;
}

blockquote p {
    font-size: 1.25em;
    color: #4B4B4A;
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.login-with-google-btn {
    transition: background-color .3s, box-shadow .3s;
    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 3px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    color: #757575;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: white;
    background-repeat: no-repeat;
    background-position: 12px 11px;
}

.login-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    background-color: white;
    text-align: left;
}

.login-content h1,
.login-content h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.login-content form {
    width: 100%;
    margin-bottom: 20px;
}

.login-content label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.login-content input[type="email"],
.login-content input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

.login-content button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.action-button {
    color: white;
    transition: background-color 0.3s ease;
}

.action-button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.action-button:not(:disabled) {
    background-color: #007BFF;
}

.action-button:not(:disabled):hover {
    background-color: #459fff;
}

.switch-mode-text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.switch-mode-button {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 5px;
    display: inline;
}

.switch-mode-button:hover {
    color: darkblue;
    text-decoration: none;
}

.switch-mode-button::after {
    content: " →";
    color: darkblue;
    transition: transform 0.2s ease-in-out;
}

.switch-mode-button:hover::after {
    transform: translateX(3px);
}

@media only screen and (min-width: 768px) {
    .nav-links {
        flex-direction: row;
        gap: 1.5em;
    }

    main {
        max-width: 1200px;
        margin: 5em auto 2em;
    }

    section {
        max-width: 1200px;
        padding: 2em;
    }

    .footer-content {
        flex-direction: row;
        text-align: left;
    }

    .footer-logos {
        margin-top: 0;
    }

    .login-content {
        max-width: 400px;
    }
}

