/* Minimalist, modern design for the web app */

/* Make sure HTML/body occupy full height */
html, body {
    margin: 100;
    height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

/* Let body be a flex container, so .main-content can fill remaining space */
body {
    display: flex;
    flex-direction: column;
}

/* Navbar at the top */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 1rem;
}
.navbar a {
    color: #333;
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 600;
}
.navbar a:hover {
    color: #007BFF;
}

/* The main-content can be flex or block, up to you.
   Here we use flex again so .container can fill the vertical space. */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* let children use the available space */
}
/* Flex container for panes */
.container {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

/* Left pane (component pane) */
.component-pane {
    flex-grow: 1;
    min-width: 200px;
    overflow-y: auto;
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

/* Right pane (map pane) */
.map-pane {
    flex-grow: 1;
    min-width: 200px;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
}

/* Resizer styles */
.resizer {
    width: 5px;
    background-color: #ccc;
    cursor: col-resize;
    z-index: 10;
    position: relative;
}
.resizer:hover {
    background-color: #aaa;
}


/* Leaflet map must fill parent for correct display */
#map {
    width: 100%;
    height: 100%;
}

/* Basic table styling for a clean look */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
table th, table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #eee;
}
table th {
    background-color: #f1f1f1;
    font-weight: 600;
}

/* Simple button styling */
button {
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: #aaacae;
    border: none;
    color: #000000;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}

/* Optional: style inputs, selects, etc. */
input[type="text"], input[type="number"], select {
    margin: 0.25rem;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style for cube selector dropdown */
#cube-selector {
    margin: 1rem 0;
}

/* Table header alignment for clarity */
#imagery-table th {
    text-align: left;
}

/* Delete button styles */
.delete-btn {
    background-color: #ff4d4f;
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}
.delete-btn:hover {
    background-color: #d32f2f;
}

/* Filter and Submit button styles */
#apply-filter-btn, #submit-btn {
    background-color: #aaacae;
    color: #000000;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}
#apply-filter-btn:hover, #submit-btn:hover {
    background-color: #0056b3;
}
