/* styles.css */

/* General styling */
body {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000;
    color: #fff;
}

.logo-container {
    flex-shrink: 0; /* Prevent the logo from shrinking */
    display: flex; 
    align-items: center; /* Align the logo vertically within the top menu */
}

.dashboard-logo {
    height: 50px; /* Adjust to the height of the menu */
    width: 100px;  /* Keep the logo square */
    object-fit: cover; /* Ensure the image fits within the defined dimensions */
    max-width: 100%; /* Prevent the logo from overflowing its container */
    max-height: 100%; /* Ensure it doesn’t overflow the container vertically */
    display: block; /* Ensures the image behaves like a block element */
}

/* Center container for login page */
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensure full height to center items vertically */
}

/* Container styling */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo svg {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
}

/* Welcome text */
.welcome-text {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Login form styling */
.login-form {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.login-form input {
    width: 260px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #fff;
    border-radius: 4px;
    background-color: #fff;
    color: #000;
    display: block;
    box-sizing: border-box; /* Ensures padding and borders are included in the total width */
}

.login-form input[type="submit"] {
    width: 260px;
    background-color: #4A90E2;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    border: none;
    padding: 10px;
    box-sizing: border-box; /* Ensures padding and borders are included in the total width */
}

.login-form input[type="submit"]:hover {
    background-color: #ff9850;
}

/* Error message styling */
.error-message {
    color: #ff4d4d;
    margin-bottom: 10px;
    text-align: center;
}

/* Dashboard specific styling */
/* Side Menu Styling */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #333;
    color: #fff;
    opacity: 0; /* Initially hidden */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Show class to display side menu */
.side-menu.show {
    opacity: 1;
    visibility: visible;
}

/* Menu content styling */
.menu-content {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.menu-item {
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #444;
    background-color: #4A90E2;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #4A90E2;
}

.menu-toggle-button, .close-menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin: 10px;
    transition: color 0.3s;
}

.menu-toggle-button:hover, .close-menu-button:hover {
    color: #FF7B1B;
}

.top-bar {
    display: flex;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 10px;
}

form {
    display: inline; /* Keep the form inline */
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
}

/* Map container styling */
.map-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: calc(100vh - 60px); /* Adjust height to fill available space */
    overflow: hidden;
}
/* Map styling */
#map {
    width: 100%;
    height: 100%; 
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay styles for tag summary */
#tag-summary-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 500px;
    max-height: 800px; /* Ensure it has a reasonable max height */
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    overflow-y: auto; /* Allow scrolling if content exceeds height */
    display: block; /* Ensure it’s visible from the start */
}

#tag-summary-overlay.visible {
    display: block; /* Make the overlay visible */
}

/* static/css/styles.css */
.orange-marker {
    background-color: #FF7B1B; /* Set marker color to orange */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* Ensure the label "T" is white */
    font-weight: bold;
}

.blue-marker {
    background-color: #1260ba; /* Set marker color to blue */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* Ensure the label "D" is white */
    font-weight: bold;
}

/* InfoWindow styling */
.info-window-content {
    background-color: #333; /* Dark background */
    padding: 10px;
    color: #fff; /* White text color */
    border-radius: 5px;
}

.info-window-title {
    margin: 0;
    padding: 0;
    color: #FF7B1B; /* Orange color for the title */
}

.info-window-text {
    margin: 5px 0;
}

/* Styling for movable and resizable overlay */
.overlay {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 80%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker background */
    border: 1px solid #fff;
    resize: both;
    overflow: auto;
    z-index: 1000;
    padding: 10px;
    display: none; /* Hidden by default */
}

.overlay-header {
    background-color: #333;
    color: #fff;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move; /* Show move cursor */
    user-select: none;
}

#data-table {
    width: 100%;
    border-collapse: collapse;
}

#data-table th, #data-table td {
    padding: 10px;
    border: 1px solid #fff; /* White border */
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap-text {
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.details-cell {
    background-color: #444; /* Darker background for details */
    color: #fff;
    padding: 10px;
}

.page-button {
    background-color: #333;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 10px;
    cursor: pointer;
    margin: 0 2px;
}

.page-button.active {
    background-color: #FF7B1B;
    color: #fff;
}

#close-overlay {
    background-color: #4A90E2;

    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-button {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
}

.tab-button.active {
    background-color: #0056b3;
}

.tab-content {
    display: none;
}

.tab-content.visible {
    display: block;
}

.action-button {
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.custom-info-window {
    background: rgba(255, 255, 255, 1); /* Fully opaque white */
    border: 1px solid #ccc;
    color: black; /* Set text color to black */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    min-width: 200px; /* Minimum width for smaller content */
    max-width: 90%; /* Maximum width as a percentage of the viewport */
    word-wrap: break-word; /* Break long words to the next line */
    overflow-wrap: break-word; /* Ensure compatibility across browsers */
    overflow: hidden; /* Hide content that overflows the container */
    text-overflow: ellipsis; /* Optional for truncating overflowed text */
    display: none; /* Hidden by default */
}

.custom-info-window:active {
    cursor: grabbing;
}

/* Optional: Add tooltip styling for truncated content */
.custom-info-window .truncated {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

