body {
    margin: 0;
    overflow: hidden;
}

body>.banner>span {
    flex: 1 1 auto;
    font-size: 25px;
    padding: 10px 20px;
    font-weight: bold;
    position: relative;
}

body>.banner>.logo {
    flex: 0 0 200px;
    background-image: url('../libs/planning/logo.svg');
    background-repeat: no-repeat;
    z-index: 100;
}

body>.banner>.logoBack {
    width: 200px;
    height: 50px;
    display: inline-block;
    background-color: #201547;
    transform: skewX(26deg);
    position: absolute;
    top: 0;
    right: 12px;
}

body>.banner>.loginDiv {
    position: absolute;
    right: 220px;
    top: 0;
    height: 100%;
    width: auto;
    font-size: 12px;
    padding-top: 15px;
    color: gray;
}

body>.banner {
    background: white;
    height: 50px;
    cursor: default;
    font-size: 14px;
    color: #4E4E4E;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    text-align: center;
}

body>.root {
    background: black;
    height: calc(100vh - 50px);
    display: flex;
    cursor: default;
    font-size: 14px;
    color: #4E4E4E;
}

.root>.panel {
    flex: 1 1 100px;
    background: white;
    overflow: auto;
    height: 100%;
}

.root>.map {
    flex: 1 1 100px;
}

.esri-view .esri-view-surface {
    outline: none !important;
}

.esri-view .esri-view-surface::after {
    outline: none !important;
}

.esri-legend__service {
    padding: 6px 6px;
}

#viewDiv {
    flex: 1 1 auto;
    /* grow to fill remaining space */
    min-height: 0;
    /* for proper flex shrinking */
    font-family: VIC, Arial, sans-serif;
}

.esri-legend {
    max-height: 120px;
    max-width: 250px;
    overflow: auto;
    font-size: 12px;
    padding: 8px;
    font-family: VIC, Arial, sans-serif;
}

.widgetBtn {
    box-shadow: 0 1px 2px #0000004d;
    width: 32px;
    height: 32px;
    border: none;
    background-color: var(--calcite-action-background-color, var(--calcite-color-foreground-1));
    box-sizing: border-box;
    padding: 7px;
    cursor: pointer;
    color: var(--calcite-action-text-color, var(--calcite-color-text-3));
}

.esri-layer-list {
    width: 270px !important;
}


.widgetBtn calcite-icon {
    width: 18px;
    height: 18px;
    min-block-size: 18px;
    min-inline-size: 18px;
}

.widgetBtn:hover {
    background-color: lightgray;
}


#feedbackPopup {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 999;
    max-width: 400px;
    max-height: 520px;
    width: 90%;
    font-family: VIC, Arial, sans-serif;
}



#feedbackPopup h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
}

#feedbackPopup label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

#feedbackPopup input[type="text"],
#feedbackPopup input[type="email"],
#feedbackPopup textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

#feedbackPopup textarea {
    resize: vertical;
    min-height: 80px;
}

#feedbackPopup button {
    margin-right: 10px;
    padding: 6px 10px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: VIC, Arial, sans-serif;
}

#fb-submit-btn {
    background-color: #0079c1;
    color: #fff;
}

#fb-submit-btn:hover {
    background-color: #005e9e;
}

#fb-cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

#fb-cancel-btn:hover {
    background-color: #ccc;
}

#nv-submit-btn {
    background-color: #0079c1;
    color: #fff;
}

#nv-submit-btn:hover {
    background-color: #005e9e;
}

#nv-cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

#nv-cancel-btn:hover {
    background-color: #ccc;
}

#newVenue-popup button {
    margin-right: 10px;
    padding: 6px 10px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: VIC, Arial, sans-serif;
}

#newVenue-popup label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

#newVenue-popup h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
}

.newvenue-input,
select.newvenue-input {
    width: 100%;
    box-sizing: border-box;
    /* include padding and border in width */
    max-width: 100%;
    /* optional: add some padding */
    padding: 6px 8px;
    font-size: 14px;
}


.custom-message-popup {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    text-align: center;
    min-width: 250px;
}

.custom-message-text {
    margin: 0 0 10px;
    font-size: 1rem;
}

.custom-message-button {
    margin-top: 10px;
    margin-right: 10px;
    padding: 8px 14px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #0079c1;
    color: #fff;
}

.custom-message-button:hover {
    background-color: #005e9e;
}

.splash-screen {
    opacity: 0;
    position: fixed;
    /* Ensures it covers the entire screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    display: flex;
    justify-content: center;
    /* Horizontally center content */
    align-items: center;
    /* Vertically center content */
    z-index: 1000;
    /* Ensures it's on top of other content */
}

/* Content inside the splash screen */
.splash-screen .content {
    padding: 1em;
    text-align: center;
    background-color: white;
    border: 2px solid #000000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 30em;
}

.splash-screen button {
    background: linear-gradient(135deg, #2980b9, #6dd5fa);
    /* Gradient blue background */
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
}

.esri-popup-table {
    width: 100%;
    border-collapse: collapse;
}

.esri-popup-table td {
    padding: 4px 8px;
    vertical-align: top;
}

.esri-popup-table td:first-child {
    font-weight: bold;
    white-space: nowrap;
}

.root {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* or 100% if parent allows */
    margin: 0;
    padding: 0;
}

.root>.foot {
    background-color: white;
    width: 100%;
    margin-top: 0px;
    display: none;
}

.root>.foot.show {
    display: block;

}

.foot>div {
    border-bottom: none !important;
    margin-bottom: 4px;

}

.left-panel {
    width: 300px;
    background-color: #f4f4f4;
    padding: 20px;
    position: absolute;
    height: 100%;
    right: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 90%;
    font-family: 'VIC';
}

.panel-section {
    margin-bottom: 20px;
}

.panel-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.panel-section select {
    width: 100%;
    padding: 8px 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    background-color: white;
}

.esri-sketch__panel {
    display: none !important;
}

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#draw-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #444;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 320px;
    max-width: 90vw;
    text-align: center;
    z-index: 1000;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

#draw-popup button {
    margin: 10px 10px 0 10px;
    padding: 8px 16px;
    border: none;
    background-color: #444;
    color: white;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 80px;
}

#draw-popup button:hover {
    background-color: #222;
}

#close-nv-popup {
    margin: 10px 10px 0 10px;
    padding: 8px 16px;
    border: none;
    background-color: #444;
    color: white;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 80px;
}

#close-nv-popup button:hover {
    background-color: #222;
}

.table-button {
    padding: 3px 20px;
    cursor: pointer;
    font-family: 'VIC'
}


.feature-table {
    width: 100%;
    box-sizing: border-box;
    border-collapse: collapse;
    height: 215px;
    margin-bottom: 10px;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

table {
    margin: 10px;
    border-collapse: collapse;
    font-size: 12px;
}