body {
	color: #607D8B;
	font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

a {
    text-decoration: underline;
}

h1 {
	font-size: 18px;
	font-weight: 400;
}

h2 {
	font-size: 14px;
	font-weight: bold;
}

#leaflet-map {
	height: calc(100vh - 50px);
	width: 100vw; 
}

/* Make settings and temperature views fill viewport minus top menu */
#settingsView, #temperatureView {
    height: calc(100vh - 50px); /* 50px = top menu height */
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* start from top instead of centered */
    align-items: center;         /* horizontal center */
    overflow-y: auto;            /* scroll if content overflows */
}

#temperatureView {

    padding-top: 10px;          /* space so top dots aren't hidden */
}

#settingsView {
    /*background-color: unset;*/
    background-image: url('../images/Brain.jpg'); /* small, optimized image */
    background-size: cover;       /* fill the view */
    background-position: center;  /* center it nicely */
    background-repeat: no-repeat; /* don’t tile */
}

#trackView {
	margin-top: 50px;
}

/* Adjust for small screens */
@media (max-width: 767px) {
    .top-card {
        margin-top: 20px; /* small top margin for mobile */
    }
#settingsView .card {
        margin-top: 100px;   /* small top spacing for each card */
        margin-bottom: 15px;/* spacing between cards */

    }
/* Ensure temperature chart is large enough */
    #temperatureView {
        height: calc(100vh - 50px);  /* fill remaining viewport */
        flex: 1 1 auto;
    }

    #tempChart {
        width: 100% !important;
        height: 100% !important;    /* fixed height for mobile */
    }
}

/* Chart canvas fills parent container */
#tempChart {
    width: 100% !important;
    height: 100% !important;
}


.device-name-gray {
    background-color: #e0e0e0;   /* gray rectangle for trackView */
    border: 1px solid #a0a0a0;
    border-radius: 4px;
    padding: 2px 10px;
}

.device-name-clear {
    background-color: #ffffff;   /* white-ish rectangle for other tabs */
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    padding: 2px 10px;
}

.logo-icon {
    height: 36px;
    vertical-align: unset;
     /* move left by positioning relative to its flex container */
    position: relative;
    left: 20px; /* adjust as needed */
}

.card {
	border: 0px;
    border-radius: 0px
}

.btn.float {
	position: absolute;
	max-width: 150px;
	z-index: 999;
}

.btn:hover {
    cursor: pointer;
}

.btn.disabled {
    opacity: 0.3;
    background-color: #607D8B;
    border-color: #607D8B;
    cursor: default;
}

.btn.float.bottom-right {
	bottom: 35px;
	right: 20px;
}

#temperatureBtn {
    height: 36px;
    padding: 0;
    margin-bottom: 5px;
    /* move left by positioning relative to its flex container */
    position: relative;
    right: 30px; /* adjust as needed */
}

.menu {
	height: 50px;
	background-color: white;
	padding-top: 5px;
}

.temperature-icon, .connect-icon {
	height: 20px;
	vertical-align: unset;
    visibility: hidden;
}

.main {
	background-color: #607D8B;
}


.nrf-blue {
	color: #607D8B !important;
}

.nrf-light-blue {
	color: #607d8b85 !important;
}

.top-card {
	margin-top: 600px;
}

.border-bottom {
	border-bottom-color: lightgrey;
}

.border-right {
	border-right-color: lightgrey;
}

#mainlogo {
	width: 250px;
}

.flex-even {
	flex: 1;
}

.whole-screen {
	width: 100%;
	height: 100vh;
}

.whole-width {
	width: 100%;
}

.mobile-width {
    max-width: 320px;
}

.desktop-friendly-size {
	max-width: 100vw!important;
}

.black {
	background-color: black;
}

.list-group-item.active,
.btn-nrf {
    border-radius: 0;
	color: white !important;
	background-color: #00a9ce;
	border-color: #00a9ce;
}
