/* 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%);
}

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

/* Header and navigation */
header {
    background-color: #004E59; /* Petrol */
    height: 56px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between logo on left and nav links on right */
    width: 100%;
    padding: 0; /* No extra padding */
    box-sizing: border-box; /* Ensure padding and borders are included in height */
}

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

.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; /* Ensure text height does not stretch beyond bounds */
    display: flex;
    align-items: center;
    height: 100%; /* Match the parent's height */
}

/* Ensure nav-links fit within the 56px header */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5em;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%; /* Match the height of the header */
    margin-right: 20px; /* Add spacing on the right for alignment */
}

.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; /* Center buttons vertically */
    justify-content: center;
    height: 100%; /* Ensure buttons are also height-aligned */
}

#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%; /* Keep login button within header */
}

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

#authAction button {
    cursor: pointer;
}

/* Disabled state for NAO link */
.button-link.disabled {
    background-color: #A0A0A0;
    cursor: not-allowed;
    pointer-events: none;
}

/* Main content layout */
main {
    max-width: 1200px;
    margin: 5em auto 2em;
    padding: 0 2em;
    flex-grow: 1;
}

section {
    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;
}

/* Scoped styles for lists in the main content */
section ul {
    padding-left: 20px;
}

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


/* Specific sections */

/* Style for home logo and title */
.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;
}

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

section {
    background-color: #FFFFFF;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
    width: 1200px; /* Keep the existing max-width to maintain layout */
    box-sizing: border-box;
}




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

/* Footer */
footer a {
    color: #FFFFFF;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2em;
    box-sizing: border-box;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1em;
}

.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;
  }



  /* Auth button circle styles */
#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;  /* Color when logged in */
}

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

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

/* Highlight active page in the navigation */
.nav-links li a.active {
    background-color: #006B6C;  /* Darker shade for active page */
    color: #FFFFFF;
    cursor: default;
    pointer-events: none;  /* Disable click */
    border-radius: 5px;
}

/* Disabled state for the notebooks link */
#notebooks-link.disabled {
    background-color: #A0A0A0;  /* Greyed out */
    color: #D0D0D0;
    pointer-events: none;  /* Disable clicking */
    cursor: not-allowed;
}

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


/* Style images inside blockquotes */
blockquote img {
    max-width: 150px; /* Control image size to match the original layout */
    height: auto; /* Maintain aspect ratio */
    display: inline-block;
}

/* Adjust the text size and alignment inside blockquotes */
blockquote h1 {
    font-size: 2.5em;
    color: #004E59;
}

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


/* Google button */
.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-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
    background-color: white;
    background-repeat: no-repeat;
    background-position: 12px 11px;

    &:hover {
      box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
    }

    &:active {
      background-color: #eeeeee;
    }

    &:focus {
      outline: none;
      box-shadow:
        0 -1px 0 rgba(0, 0, 0, .04),
        0 2px 4px rgba(0, 0, 0, .25),
        0 0 0 3px #c8dafc;
    }

    &:disabled {
      filter: grayscale(100%);
      background-color: #ebebeb;
      box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
      cursor: not-allowed;
    }
  }


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

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

/* Forms take full width */
.login-content form {
    width: 100%;
    margin-bottom: 20px;
}

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

/* Full-width inputs */
.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;
}

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

/*
    color: white;
background-color: #004E59;
.login-content button:hover:not(:disabled) {
    background-color: #00676F;
}
*/
.action-button {
    color: white;
    transition: background-color 0.3s ease;
}


/* Style for disabled button */
.action-button:disabled {
    background-color: #555;  /* Dark grey color */
    cursor: not-allowed;  /* Change cursor to indicate it's disabled */
}

/* Style for enabled button when active */
.action-button:not(:disabled) {
    background-color: #007BFF;  /* Friendly blue color */
}

/* Style for enabled button when active */
.action-button:not(:disabled):hover {
    background-color: #459fff;  /* Friendly blue color */
}

/* Button hover effect for disabled state */
.action-button:disabled:hover {
    background-color: #555;  /* Keep dark grey when hovered */
}

.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; /* adds space between "or" and "Sign Up" */
    display: inline;
}

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

/* Optional: Add an icon to the right of "Sign Up" */
.switch-mode-button::after {
    content: " →";
    color: darkblue;
    transition: transform 0.2s ease-in-out;
}

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