/* Basic Body and Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

#main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

#viewer-menu {
    display: flex;
    gap: 0.5rem;
}

#viewer-menu button {
    background-color: #005a9c;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

#viewer-menu button:hover {
    background-color: #00487a;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #005a9c;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#content-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

#navigation-pane {
    width: 40%;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 75vh;
    overflow-y: auto;
}

#display-pane {
    width: 60%;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation Tree Styles */
.nav-body, .nav-subcommittee, .nav-meeting {
    margin-left: 1rem;
}

.nav-header {
    cursor: pointer;
    font-weight: bold;
    padding: 0.5rem;
    position: relative;
}

.nav-header::before {
    content: '►'; /* Collapsed icon */
    position: absolute;
    left: -10px;
    font-size: 0.8em;
    transition: transform 0.2s;
}

.nav-header.expanded::before {
    transform: rotate(90deg);
}

.nav-items {
    display: none; /* Hidden by default */
    padding-left: 1rem;
    border-left: 1px solid #eee;
}

.nav-meeting {
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    margin-left: -0.4rem; /* Align text with parent */
}

.nav-meeting:hover {
    background-color: #f0f0f0;
}

/* Display Pane Styles */
.welcome-message {
    text-align: center;
    color: #777;
}

#summary-content h3 {
    margin-top: 0;
}

#summary-content p {
    white-space: pre-wrap; /* Respects newlines in the summary text */
}

.links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.info-link {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    color: #005a9c;
    padding: 0.5rem 1rem;
    border: 1px solid #005a9c;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.info-link:hover {
    background-color: #005a9c;
    color: #fff;
}

.transcript-link {
    background-color: #005a9c;
    color: #fff;
}

.transcript-link:hover {
    background-color: #00487a;
}


/* Search Box */
#search-container form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

#search-box {
    border: none;
    padding: 0.5rem 1rem;
    outline: none;
}

#search-button {
    background: #005a9c;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

#search-button img {
    height: 16px;
    width: 16px;
    filter: invert(1);
}


/* Modal Styles */
.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-footer {
    margin-top: 1rem;
    text-align: right;
}

/* Share Modal Specifics */
#share-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

#share-buttons button {
    padding: 0.5rem 1rem;
    cursor: pointer;
}
