body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    margin-bottom: 1rem;
}

section {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type=email] {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
}

button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.message {
    color: green;
    margin-bottom: 1rem;
}

.error {
    color: red;
    margin-bottom: 1rem;
}

.protocol-list ul {
    padding-left: 1.5rem;
}

.protocol-list li {
    margin-bottom: 0.5rem;
}

.empty {
    color: #666;
}

.tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tabs .spacer {
    flex: 1;
}

#logoutBtn {
    background: #dc3545;
    color: #fff;
    border: 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

#logoutBtn:hover {
    background: #bb2d3b;
}

.controlpoint-selector {
    position: relative;
}

.search-results {
    border: 1px solid #ccc;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
}

.search-result-item {
    cursor: pointer;
    padding: 6px 10px;
}

.search-result-item:hover {
    background-color: #f0f0f0;
}

.selected-controlpoint {
    margin-top: 6px;
    font-weight: bold;
}


#protocol-search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.protocol-search-result {
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

#recent-mushrooms,
#popular-mushrooms {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.protocol-mushroom-card {
    width: 120px;
    text-align: center;
}

.protocol-mushroom-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.protocol-mushroom-card img:hover {
    border-color: #2f7d32;
}

.protocol-mushroom-name {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

#protocol-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#protocol-items-table th,
#protocol-items-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
}

.protocol-weight {
    width: 100px;
}

.danger-btn {
    background: #c62828;
    color: white;
    border: 0;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

.danger-btn:hover {
    background: #a00000;
}




/* --------------------------------------------------
   Expert header layout
   -------------------------------------------------- */

.expert-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
}

.expert-info > span {
    font-weight: bold;
    white-space: nowrap;
}

.controlpoint-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

#controlpoint-search {
    width: 220px;
}

.selected-controlpoint {
    margin-top: 0;
    white-space: nowrap;
}

/* --------------------------------------------------
   Gatherer name + postal code on one line
   -------------------------------------------------- */

.protocol-person-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.protocol-person-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

#gatherer-name {
    width: 250px;
}

#gatherer-postal-code {
    width: 70px;
}
#controlpoint-search {
    width: 70px;
}

/* --------------------------------------------------
   Hamburger menu
   -------------------------------------------------- */

.hamburger-menu {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.hamburger-button {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
    margin: 0;
}

.tabs {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hamburger-menu.open .tabs {
    display: flex;
}

.tabs .spacer {
    display: none;
}

.tabs button {
    margin: 0;
    text-align: left;
}


.protocol-header {
    margin-bottom: 20px;
}

.protocol-view-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.protocol-view-mushroom {
    display: flex;
    gap: 12px;
    align-items: center;
}

.protocol-view-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.protocol-view-name {
    font-weight: bold;
}

.protocol-view-weight {
    color: #666;
}

.protocol-header {
    margin-bottom: 20px;
}

.protocol-header-value {
    font-weight: bold;
    padding-right: 30px;
}

.protocol-view-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

.field-error {
    border: 2px solid #d00000 !important;
    background-color: #fff0f0;
}
