
/* ==== PHC Portal CSS v1 ==== */

/* ===== Base Layout ===== */

body, html {
    background-color: #FFF;
    font-family: 'Roboto', sans-serif;
}

#pageContent {
    display: flex;
    flex-wrap: nowrap; /* force horizontal */
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 1em;
    gap: 2em;
    background: #ffffff;
    color: #666666;
    font-size: 15px;
    box-sizing: border-box;
}

main {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

aside {
    width: 300px; /* fixed width so it behaves */
    box-sizing: border-box;
    padding: 10px;
    background: #f9f9f9;
    border-left: 1px solid #ccc;
}

.side-text h3 {
    font-size: 18px;
    background: #004d99;
    color: #fff;
    padding: 10px;
    margin: 0;
}

.side-text ul {
    list-style-type: disc;
    padding-left: 20px;
}

.side-text ul li {
    margin: 5px 0;
}

.side-text ul li a {
    color: #004d99;
    text-decoration: none;
}

.side-text ul li a:hover {
    text-decoration: underline;
}

footer {
    background: #004d99; /* match header/nav */
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

address {
    padding: 0;
    font-size: 12px;
}


/* ===== Navigation ===== */
nav {
    font-family: 'Roboto', sans-serif;
    background: #004d99;
    padding: 0;
    margin-bottom: 1em;
    border-bottom: 2px solid #ccc;
}

.primary-nav,
.secondary-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5em 0;
    margin: 0;
    gap: 0.5em;
}

.primary-nav li,
.secondary-nav li {
    display: inline-block;
}

.primary-nav a,
.secondary-nav a {
    color: white;
    text-decoration: none;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    background: #0066cc;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.primary-nav a:hover,
.secondary-nav a:hover {
    background: #0055aa;
}

.primary-nav li.active a {
    background-color: #ffcc00;
    color: #000;
}

.secondary-nav {
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
}

.secondary-nav a {
    color: #333;
    background: #e0e0e0;
}

.secondary-nav a:hover {
    background-color: #ddd;
}


/* ===== Components & Utilities ===== */

.logobanner {
    background: #004d99;
    color: white;
    padding: 10px;
    font-size: 18px;
    text-align: center;
}
.logobanner input[type="submit"] {
    margin-left: 10px;
    padding: 4px 12px;
    font-size: 14px;
    border: none;
    background: #ffcc00;
    color: #000;
    border-radius: 4px;
    cursor: pointer;
}
.logobanner input[type="submit"]:hover {
    background: #e6b800;
}

.field {
    display: flex;
    margin-bottom: 0.75em;
}

.field label {
    flex: 0 0 140px;
    font-weight: bold;
}

.field .value {
    flex: 1;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.4em;
    border-radius: 4px;
}

.button-row {
    margin-top: 1em;
    text-align: right;
}

.timechunk-view {
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
    max-width: 800px;
}

.timechunk-view h2 {
    margin-bottom: 1em;
}


/* ===== Responsive Media Queries ===== */

@media screen and (max-width: 800px) {
    #pageContent {
        flex-wrap: wrap;
    }

    main, aside {
        width: 100%;
    }

    aside {
        order: 2;
    }
}

