/* assets_styles.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background: url('../images/bg1.jpg') no-repeat center center fixed;
    background-size: cover;
}

.navbar {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    color: white;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 0px 0; /* Increase vertical padding */
}

.navbar-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center; /* Align items vertically */
}

.navbar a, .navbar .dropdown > a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em; /* Increase font size */
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.navbar a:hover, .navbar .dropdown > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.assets-container {
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 20px;  /* Adjust margin to account for navbar */
    background: transparent;  /* White background with 80% opacity */
    border-radius: 8px;  /* Optional: add some rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Optional: add some shadow for depth */
    color: #333;
}

.asset-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.asset-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Enhanced shadow */
    padding: 1%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);  /* Enhanced hover effect */
}

.asset-info {
    flex-grow: 1;
    text-align: left;
}

.asset-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.asset-info p {
    margin: 5px 0;
}

.asset-status {
    display: flex;
    align-items: center;
    margin-right: 20%;
    margin-left: 10%;
}

.asset-status span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.asset-status.alarm-active span {
    background-color: #f44336;
}

.asset-status.alarm-inactive span {
    background-color: #4CAF50;
}

.asset-card-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.asset-card button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.asset-card button i {
    margin-right: 5px;
}

.asset-card button:hover {
    background-color: #098a0f;
}


/* styles for geoassets */

.map-container {
    width: 100%;
    height: calc(100vh - 60px); /* Adjust height to fit below the navbar */
    margin-top: 60px; /* Adjust margin to account for the navbar */
}

#map {
    width: 100%;
    height: 100%;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    min-width: 200px; /* Increased width */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%; /* Align to bottom of parent */
    left: 0;
}

.dropdown-content a {
    color: #4CAF50;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    font-size: 1.2em; /* Slightly smaller than main nav items */
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}