body {
    font-family: "Times New Roman", Times, serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}
body {
    
    background: #f5f5f5;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ==================================================
   NOTES PAGE
   ================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    
    background: #f5f6f8;
    color: #222;
}


/* ==================================================
   TOP BAR
   ================================================== */

.topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

#usernameDisplay {
    font-weight: 600;
}

#logoutButton {
    border: 1px solid #ccc;
    background: white;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

#logoutButton:hover {
    background: #f0f0f0;
}


/* ==================================================
   MAIN NOTES LAYOUT
   ================================================== */

.notes-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}


/* ==================================================
   LEFT SIDEBAR
   ================================================== */

.sidebar {
    width: 280px;
    min-width: 280px;
    background: #e0eded;
    border-right: 1px solid #ddd;
    padding: 24px 18px;
    overflow-y: auto;
}

.sidebar h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}


/* Navigation sections */

.nav-section {
    margin-bottom: 8px;
}

.nav-section-button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}

.nav-section-button:hover {
    background: #f0f0f0;
}


/* Pages underneath sections */

.nav-children {
    padding-left: 12px;
}

.nav-page-button {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.nav-page-button:hover {
    background: #eeeeee;
}


/* ==================================================
   RIGHT NOTES AREA
   ================================================== */

.notes-content {
    flex: 1;
    padding: 40px;
    overflow-x: hidden;
    background: #e8f5f5;
}

#notes {
    width: fit-content;
    min-width: 900px;
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    background: #e8f5f5;
    padding: 5px 15px;
    border-radius: 10px;
    
}

#notes {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/* ==================================================
   NOTE TITLE
   ================================================== */

#notes h1 {
    font-size: 35px;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
}


/* ==================================================
   HEADINGS
   ================================================== */

#notes h2 {
    font-size: 27px;
    margin-top: 35px;
    margin-bottom: 14px;
    line-height: 1.3;
}

#notes h3 {
    font-size: 23px;
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.3;
}

#notes h4 {
    font-size: 19px;
    margin-top: 24px;
    margin-bottom: 10px;
    line-height: 1.3;
}


/* ==================================================
   PARAGRAPHS
   ================================================== */

#notes p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 16px;
}


/* ==================================================
   TO-DO ITEMS
   ================================================== */

.todo-item {
    font-size: 17px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    line-height: 1.6;
}

.todo-item input {
    margin-top: 5px;
}


/* ==================================================
   LISTS
   ================================================== */

#notes ul,
#notes ol {
    margin-top: 8px;
    margin-bottom: 18px;
    padding-left: 30px;
}

#notes li {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.6;
}


/* ==================================================
   QUOTES
   ================================================== */

#notes blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #999;
    background: #f5f5f5;
    font-style: italic;
    line-height: 1.6;
}


/* ==================================================
   CALLOUTS
   ================================================== */

.notion-callout {
    margin: 20px 0;
    padding: 18px 20px;
    background: #f3f4f6;
    border-radius: 8px;
    line-height: 1.6;
}


/* ==================================================
   CODE
   ================================================== */

.notion-code {
    margin: 20px 0;
    padding: 18px;
    background: #1e1e1e;
    color: #f5f5f5;
    border-radius: 8px;
    overflow-x: auto;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.5;
}


/* ==================================================
   DIVIDERS
   ================================================== */

#notes hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}


/* ==================================================
   IMAGES
   ================================================== */

.notion-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 8px;
}


/* ==================================================
   VIDEOS
   ================================================== */

.notion-video {
    display: block;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 25px auto;
    border-radius: 8px;
}


/* ==================================================
   BOOKMARKS
   ================================================== */

.notion-bookmark {
    display: block;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    word-break: break-word;
}

.notion-bookmark:hover {
    background: #f5f5f5;
}


/* ==================================================
   WELCOME MESSAGE
   ================================================== */

.welcome-message {
    text-align: center;
    padding: 60px 20px;
}

.welcome-message h1 {
    margin-bottom: 12px;
}

.welcome-message p {
    color: #666;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 800px) {

    .notes-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .notes-content {
        padding: 20px;
    }

    #notes {
        padding: 25px;
    }

    #notes h1 {
        font-size: 29px;
    }
}

/* ==================================================
   NOTION NAVIGATION ICONS
   ================================================== */

.nav-section-button,
.nav-page-button {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-arrow {
    width: 12px;
    flex-shrink: 0;
}

.nav-page-icon {
    width: 15.4px;
    height: 15.4px;
    min-width: 15.4px;
    min-height: 15.4px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-emoji-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17.4px;
    line-height: 17.4px;
}

.nav-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ====================================
   Main OSCE Navigation
   ==================================== */

.main-section-button,
.main-page-button {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;

    padding: 12px 16px;

    margin-bottom: 8px;

    border: none;

    background: transparent;

    text-align: left;

    cursor: pointer;
}


.main-section-button:hover,
.main-page-button:hover {
    background: #f3f3f3;
}


/* ------------------------------------
   Main section titles
   ------------------------------------ */

.main-section-title {
    font-size: 22px;
    font-weight: 600;
}


/* ------------------------------------
   Main page titles
   ------------------------------------ */

.main-page-title {
    font-size: 19px;
}


/* ------------------------------------
   Main navigation heading
   ------------------------------------ */

.main-navigation-title {
    margin-bottom: 8px;
}


.main-navigation-description {
    margin-bottom: 24px;
}


/* ====================================
   Nested navigation
==================================== */

.nav-page-container {
    width: 100%;
}

.nav-page-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-arrow-button {
    width: 22px;
    min-width: 22px;
    height: 28px;

    border: none;
    background: transparent;

    cursor: pointer;

    padding: 0;
    margin: 0;
}

.nav-arrow-button:disabled {
    cursor: default;
}

.nav-page-button {
    display: flex;
    align-items: center;
    gap: 8px;

    flex: 1;

    border: none;
    background: transparent;

    text-align: left;

    cursor: pointer;

    padding: 6px 8px;

    font-size: 16px;
}

.nav-page-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-children {
    width: 100%;
}


/* ====================================
   Main navigation page
==================================== */

.main-navigation-list {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 24px;

    width: 100%;
    max-width: 700px;
}

.main-navigation-page {
    display: flex;
    align-items: center;

    width: 100%;

    min-height: 32px;

    padding: 5px 8px;

    gap: 8px;

    border: none;
    border-radius: 8px;

    background: transparent;

    text-align: left;

    cursor: pointer;

    font-size: 19px;

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.main-navigation-page:hover {
    background: rgba(0, 0, 0, 0.05);
}

.main-navigation-page:active {
    transform: scale(0.99);
}

.main-navigation-page-title {
    font-weight: 500;
}


/* ====================================
   Navigation icons
==================================== */

.nav-page-icon {
    width: 15.4px;
    height: 15.4px;

    min-width: 15.4px;
    min-height: 15.4px;

    object-fit: contain;

    display: inline-flex;

    align-items: center;
    justify-content: center;
}

.nav-emoji-icon {
    font-size: 17.4px;
    line-height: 17.4px;
}

/* ==================================================
   TABLES
   ================================================== */

.notion-table {
    border-collapse: collapse;
    margin: 20px 0;
    width: 100%;
}

.notion-table th,
.notion-table td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
    line-height: 1.5;
}

.notion-table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ==================================================
   ADMIN PAGE
   ================================================== */

.admin-body {
    background: #f5f6f8;
}

.admin-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-logo {
    font-size: 22px;
    font-weight: 700;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-notes-button {
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
}

.admin-notes-button:hover {
    background: #f0f0f0;
}

.admin-logout-button {
    border: 1px solid #ccc;
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.admin-logout-button:hover {
    background: #f0f0f0;
}

.admin-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

.admin-welcome {
    color: #555;
    margin-bottom: 24px;
    font-size: 17px;
}

.admin-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.admin-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
}

.admin-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-form input {
    flex: 1;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.admin-form button {
    background: #222;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
}

.admin-form button:hover {
    background: #000;
}

.admin-message {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.user-row strong {
    font-size: 17px;
}

.user-row span {
    font-size: 15px;
    color: #666;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 12px;
}

.user-row div {
    display: flex;
    gap: 8px;
}

.user-row button {
    font-size: 15px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 6px;
}

.user-row button:hover {
    background: #f0f0f0;
}

/* ==================================================
   LOGIN PAGE
   ================================================== */

.login-body {
    background: linear-gradient(135deg, #f5f6f8 0%, #e9ecf1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 380px;
    background: white;
    padding: 44px 36px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-title {
    margin: 0 0 6px;
    font-size: 28px;
}

.login-subtitle {
    margin: 0 0 28px;
    color: #777;
    font-size: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form input {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 17px;
}

.login-form input:focus {
    outline: none;
    border-color: #888;
}

.login-form button {
    background: #222;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 17px;
    margin-top: 4px;
}

.login-form button:hover {
    background: #000;
}

.login-message {
    margin-top: 16px;
    font-size: 16px;
    color: #c0392b;
    min-height: 18px;
}

.admin-link {
    border: 1px solid #ccc;
    background: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    color: #333;
}

.admin-link:hover {
    background: #f0f0f0;
}

.clear-all-button {
    display: block;
    margin: 0 0 20px;
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.clear-all-button:hover {
    background: #f0f0f0;
}


#osceButton{
    background: #4CAF50;
    font-weight: bold;
    font-size: 18px;
}

#osceButton:hover{
    background: #45a049;
}

.nav-builtin-icon {
    display: inline-block;
    border-radius: 3px;
    
}

.osce-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.osce-logo {
    width: 100%;
    height: 220px;         /* adjust to how tall you want the image */
    object-fit: cover;
    border-radius: 8px;    /* optional, remove if you don't want rounded corners */
}

.osce-header .main-navigation-title {
    margin-top: 12px;
    margin-bottom: 0;
}