/* base */
body{
font-family:system-ui;
background:#e0e0e0;
color:black;
margin:0;
padding-top:56px;
padding-bottom:60px;
outline:3px;
outline-color:black;
}


/* header */
.app-header{
position:fixed;
top:0;
left:0;
right:0;
height:56px;
background:#121212;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-size:18px;
font-weight:600;
border-bottom:1px solid #2a2a2a;
z-index:1000;
}


/* bottom navigation */
.bottom-nav{
position:fixed;
bottom:0;
left:0;
right:0;
height:60px;
background:#121212;
display:flex;
justify-content:space-around;
align-items:center;
border-top:1px solid #2a2a2a;
z-index:1000;
}

.bottom-nav a{
color:white;
text-decoration:none;
font-size:14px;
}


/* main container */
.container{
max-width:900px;
margin:auto;
padding:12px;
}


/* map */
#map{
width:100%;
height:60vh;
border-radius:14px;
margin-bottom:20px;
box-shadow:0 4px 12px rgba(0,0,0,0.4);
z-index: -100;
}


/* cards */
.card{
background:#1e1e1e;
border-radius:14px;
padding:16px;
margin-bottom:16px;
box-shadow:0 4px 10px rgba(0,0,0,0.3);
}


/* titles */
.title{
text-align:center;
margin-bottom:30px;
}

.title h1{
margin:0;
font-size:28px;
}

.title p{
opacity:.7;
}


/* input groups */
.input-group{
margin-bottom:16px;
}

.input-box{
display:flex;
align-items:center;
background:white;
padding:14px;
border-radius:14px;
}

.input-box input{
border:none;
outline:1px;
background:none;
color:black;
width:100%;
margin-left:10px;
font-size:15px;
}


/* normal inputs */
input{
width:100%;
padding:12px;
border-radius:10px;
border:1px solid #333;
background:#f2f2f2;
color:black;
}


/* buttons */
button{
width:100%;
padding:14px;
border:none;
border-radius:10px;
background:#3b82f6;
color:white;
font-size:16px;
cursor:pointer;
}

button:hover{
background:#2563eb;
}


/* footer */
.footer{
text-align:center;
margin-top:30px;
}

.footer a{
color:#a855f7;
text-decoration:none;
}


/* status text */
.status{
display:block;
width:100%;
font-size:13px;
margin-top:6px;
min-height:18px;
text-align:center;
}


/* messages */
.message{
padding:12px;
border-radius:10px;
margin-bottom:15px;
text-align:center;
font-size:14px;
}

.message[style*="red"]{
background:#3f1a1a;
}

.message[style*="green"]{
background:#16381a;
}


/* GPX list */
.gpx-list{
list-style:none;
padding:0;
margin:0;
}

.gpx-item{
padding:8px 0;
border-bottom:1px solid #2a2a2a;
font-size:14px;
}

.gpx-item label{
cursor:pointer;
}


/* mobile adjustments */
@media (max-width:600px){


.card{
padding:14px;
}

}
/* fullscreen map page */

#mapPage{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:white;
z-index:9999;
display:none;
}

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


/* close button */

#closeMap{
position:absolute;
top:15px;
right:15px;
z-index:3000;
background:#111;
color:white;
border:none;
padding:10px 14px;
border-radius:10px;
font-size:18px;
cursor:pointer;
}
#weatherBox {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 5000;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
}
/* Fullscreen map background */
#mapweb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Sidebar container */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 100vh;               /* EXACT viewport height */
    padding: 20px;
    display: flex;
    flex-direction: column;      /* Stack blocks vertically */
    gap: 20px;                   /* Space between blocks */
    overflow: hidden;            /* Prevent sidebar scrolling */
    z-index: 999;
    background: rgba(0, 0, 0, 0);
    color: #000;
}



/* THE PURE BLUR FADE LAYER */
#sidebar-blur-edge {
    position: fixed;
    top: 0;
    left: 0px; /* Sidebar width */
    width: 420px; /* Only the blur strip */
    height: 100vh;
    z-index: 2;

    pointer-events: none;
    background: transparent;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    mask-image: linear-gradient(to right,
        transparent 0%,
        black 0%,
        black 80%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        black 0%,
        black 80%,
        transparent 100%
    );
}



/* Block sections */
.block {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    padding-right: 50px;
    border-radius: 12px;
    margin-bottom: 0px;
}

/* Headers */
.block h2 {
    margin-top: 0;
}

/* Profile row */
.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

/* Inputs */
input[type="text"],
input[type="file"],
select {
    width: 100%;
    margin: 5px 0;
    padding: 6px;
    border-radius: 6px;
    border: none;
}

/* Buttons */
button {
    background: #2d7dff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

/* Tracks scrollable area */
.tracks-block {
    max-height: 200px;
    overflow-y: auto;
}

/* Inside track list */
.tracks-list label {
    display: block;
    margin: 6px 0;
}
.row {
    display: flex;
    align-items: center;
    gap: 10px; /* space between items */
}

.row label {
    margin-right: 5px;
}

.row input {
    width: 100px; /* adjust if needed */
}
.weather-block {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 160px;
    z-index: 1000;
    text-align: center;
}

#weatherTemp {
    font-size: 22px;
    font-weight: bold;
}

#weatherDesc {
    font-size: 13px;
    opacity: 0.8;
}
.file-btn {
    background: #2c7be5;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 12px;
}

.file-btn:hover {
    background: #1a68d1;
}

/* category + difficulty row */
.upload-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.upload-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upload-field select {
    padding: 6px;
    border-radius: 4px;
}

.public-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    width: 18px;
    height: 18px;
}


.upload-submit {
    padding: 8px 16px;
    border: none;
    background: #28a745;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.upload-submit:hover {
    background: #218838;
}
select {
    background: #ffffff;
    border: 1px solid #c9c9c9 !important;
    color: #000;
    padding: 10px;
    border-radius: 8px;
    appearance: none; /* optional for cleaner dropdown arrow */
}

.toast {
    position: fixed;
    top: 30px;
    left: 43%;                 /* center horizontally */
    transform: translate(-43%, -20px);  /* adjust X and Y */
    background: #1e293b;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99999;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);   /* fade in, slide down */
}


.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}
/* Wrapper */
.tracks-wrapper {
    display: flex;
    flex-direction: column;
    max-height: 260px;
}

/* Title (non-scrollable) */
.tracks-title {
    margin: 0 0 10px 0;
}

/* Scroll area */
.tracks-container {
    overflow-y: auto;
    flex: 1;
    padding-right: 6px;
}

/* Individual track card */
.track-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f6f9;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

/* Left info section */
.track-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 8px;
}

/* Name (clickable, truncated) */
.track-name {
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* Small meta row */
.track-meta {
    font-size: 11px;
    opacity: 0.7;
}
