@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

html, body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 14px;
}

footer {
    margin-bottom: 0 2rem;
    margin-top: auto;
    padding-bottom: 2rem;
    padding-top: 2rem;
}
a {
    color: #033E51;
}

:where(a:visited) {
    color: #033E51;
}
.btn, button {
    background-color: #117DB0;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    padding: 5px;
    font-weight: 500;
    box-shadow: none;
    border: none;
}

/* Make all buttons/btns animate & scale on hover (except the hamburger) */
.btn,
button:not(.hamburger-btn),
a.docx-link {
  display: inline-block;                 /* ensures transform behaves consistently */
  transition: transform .2s ease, 
              background-color .2s ease, 
              box-shadow .2s ease;
  will-change: transform;
}

.btn:hover,
button:hover:not(.hamburger-btn),
a.docx-link:hover {
  transform: scale(1.06);
}

/* Keep your color swap, but now it will also scale */
button:hover:not(.hamburger-btn) {
  background-color: #033E51;
}

.home-tools {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.progress-percentage {
    margin-top: 10px;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: left;
}

.progress-percentage.is-hidden {
    display: none;
}

.tool-box {
    flex: 1;
    border-radius: 8px;
    padding: 1rem;
}

/* Center titles inside each tool box */
.tool-box h2 {
    text-align: center;
}

.reference-checker {
    background-color: #fff;
    border: 1px solid #ddd;
}

.wizard {
    background-color: #117DB0;
    color: #fff;
    text-align: center;
}

.wizard a {
    color: #fff;
}

.wizard .btn,
.wizard button {
    background-color: #fff;
    color: #117DB0;
    font-weight: 600;
}

.terms-note {
    font-size: 0.5em;
    color: #999;
    font-style: italic;
}

.terms-note a {
    color: inherit;
    font-style: inherit;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: normal;
    margin-bottom: 0;
}

.nav-left {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 38px;
    font-size: 70%;
}

.nav-logo {
    height: 100px;
    margin-right: 1rem;
}

.nav-right > a,
.sub-navbar a {
    font-size: 150%;
    text-decoration: none;
}

.welcome-message {
    font-size: 150%;
}

.sub-navbar a {
    color: black;
}

.sub-navbar {
    display: flex;
    gap: 8%;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 24px;
    height: 17px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.hamburger-btn::after {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid #033E51;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.15s;
}

.hamburger-btn:hover::after {
    opacity: 1;    
}

.hamburger-btn .line {
    width: 100%;
    height: 2px;
    background-color: #000;
}

.user-menu-container {
    position: relative;
}

.user-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-menu-item {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: inherit;
    font-size: 12pt;
}

.user-menu-item:hover {
    background-color: #f5f5f5;
}

.hidden {
    display: none;
}

.early-access-banner {
    color: #808080d1;
    font-style: italic;
    margin-bottom: 30px;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

a.docx-link {
  background-color: #ffff;
  padding: 6px;
  border-radius: 10px;
  font-weight: 600;
  color: #117DB0;
  text-decoration: none;
  border: solid 2px;
}

/* My journals tables styling*/

.table-grid {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 0;
    font-size: 14px;
    padding: 5px;
}

.table-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #b0b1b3;
    border-radius: inherit;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 1;
}

.table-grid th,
.table-grid td {
    border: 1px solid #b0b1b3;
}

.table-grid thead th {
    border-top: none;
}

.table-grid thead th:first-child,
.table-grid tbody th:first-child,
.table-grid tbody td:first-child {
    border-left: none;
}

.table-grid thead th:last-child,
.table-grid tbody th:last-child,
.table-grid tbody td:last-child {
    border-right: none;
}

.table-grid tbody tr:last-child th,
.table-grid tbody tr:last-child td {
    border-bottom: none;
}

.table-grid th {
    background-color: #e7eaf0;
    font-weight: 600;
    text-align: center;
    padding: 5px;    
}
.table-grid td {
    padding: 5px;
}

.table-grid thead th:first-child {
    border-top-left-radius: 5px;
}

.table-grid thead th:last-child {
    border-top-right-radius: 5px;
}

.table-grid tbody tr:last-child td:first-child {
    border-bottom-left-radius: 5px;
}

.table-grid tbody tr:last-child td:last-child {
    border-bottom-right-radius: 5px;
}

.table-grid th a {
    color: inherit;
    text-decoration: none;
}

.table-grid th a:hover {
    text-decoration: underline;
}

.table-journals td:nth-child(-n+2) {
    text-align: center;
}

.table-conversions td:nth-child(-n+4) {
    text-align: center;
}

.table-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-compact {
    font-size: 13px;
    padding: 2.5px;
    line-height: 1.2;
}

/* Flash Messages styling */
.rounded.p-4.mb-2.bg-red-100.text-red-800, .text-red-600.text-sm.space-y-1 {
  color: #E91E63;
  font-weight: bold;
  margin-top: 10px;  
}
/* General error message styling */
.errorlist,
.errorlist li,
.errorlist.nonfield,
#elocation-errors,
#issn-errors,
#id_issn_print_error {
  color: #E91E63;  
  font-weight: 700;   
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/*Validate xmls links styling*/
.flex.items-center.gap-2 {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
.text-blue-600{
    margin-left: 10px;
}

/*Upload Article styling*/
.space-y-3{
    margin-bottom: 30px;    /*advanced options*/
}

.flex.flex-wrap.gap-3 {
    margin-top: 10px;
}

