/* Reset + Global */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333;
}

/* Top Navigation */
.top-nav {
    background:  #3939ac;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.logo img {
    height: 40px;
    margin-left: 20px;
}

/* Keep menu centered */
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Remove default link colours */
.nav-center a {
    color: #fff;
    text-decoration: none;
}

/* Active item */
.nav-center a.active {
    font-weight: bold;
}

/* Active underline */
.nav-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: #ff9900;
}

.nav-item {
    cursor: pointer;
    position: relative; /* needed for underline */
}


.spacer {
    flex: 1;
}

.icon {
    margin-left: 16px;
    font-size: 18px;
}

/* Layout */
.main {
    display: flex;
    min-height: calc(100vh - 50px);
}

/* Sidebar */
.sidebar {
    width: 180px;
    background: #f1f1f1;
    border-right: 1px solid #ccc;
    padding-top: 12px;
}

.sidebar-title {
    padding: 8px 16px;
    font-weight: bold;
}

.sidebar-menu a {
    display: block;
    padding: 6px 16px;
    color: #333;
}

.sidebar-menu a:hover {
    background: #e4e4e4;
}

.sidebar-menu a.active {
    background: #fff;
    font-weight: bold;
    border-left: 4px solid #004b9a;
}

/* Content area */
.content {
    flex: 1;
    padding: 16px 24px;
}

.breadcrumb-bar {
    background: #cfdc96;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 12px;
}

.tab {
    padding: 6px 16px;
    background: #eee;
    border: 1px solid transparent;
    border-bottom: none;
    cursor: pointer;
}

.tab.active {
    background: #fff;
    border: 1px solid #ccc;
    border-bottom: none;
    font-weight: bold;
}

/* Search Area */
.search-box {
    border: 1px solid #ccc;
    background: #fff;
    padding: 16px;
}

.search-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.search-input-row input {
    flex: 1;
    padding: 6px 8px;
}

.reset {
    margin-left: 10px;
    color: #004b9a;
    cursor: pointer;
}

/* Big Buttons */
.search-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.search-button {
    flex: 1;
    text-align: center;
    border: 1px solid #aaa;
    padding: 16px;
    border-radius: 4px;
    background: #f6f6f6;
    cursor: pointer;
}

.search-button:hover {
    background: #e6f1ff;
    border-color: #004b9a;
}

.icon-big {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

/* Narrow Form */
.narrow-header {
    font-weight: bold;
    margin-bottom: 8px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-row label {
    width: 150px;
}

.form-row select,
.form-row input {
    padding: 4px 6px;
}

.range {
    display: flex;
    gap: 6px;
    align-items: center;
}


/* Login box */

/* Error message */
.error {
    background: #ffdddd;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ff5c5c;
    border-radius: 6px;
    color: #d60000;
    font-weight: bold;
}