/************/
/* General Styling */
/************/

:root {

* {
    font-family: "Rubik", sans-serif;
    font-weight: 600;
}
    

    /* Light Mode Colors */
    --bg-color: #dfdfdf;
    --text-color: #333;
    --card-bg: #fff;
    --button-bg: #4CAF50;
    --button-hover-bg: #45a049;
    --danger-bg: #f44336;
    --danger-hover-bg: #e53935;
    --input-bg: rgb(241, 241, 241);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --bg-gradient: linear-gradient(to bottom, #ffffff, #cfcfcf);
    --place_holder_color: #333;
    --border-radius: 5px;
    --default-button-color: #fff;
    --default-button-hover-color: #ececec;
    --marked-scaler-color: rgb(174, 171, 255);
}

.dark-mode {
    /* Dark Mode Colors */
    --bg-color: #313131;
    --text-color: #e0e0e0;
    --card-bg: #7b7b7b;
    --button-bg: #357a38;
    --button-hover-bg: #2e6b32;
    --danger-bg: #d32f2f;
    --danger-hover-bg: #b71c1c;
    --input-bg: #6c6c6c;
    --shadow-color: rgba(0, 0, 0, 0.146);
    --bg-gradient: linear-gradient(to bottom, #1e1e1e, #555555);
    --place-holder-color: #e0e0e0;
    --default-button-color: #7b7b7b;
    --default-button-hover-color: #626262;
    --marked-scaler-color: rgb(96, 95, 138);
}

/* Apply Variables */
body {
    font-weight: 400;
    margin: 0;
    padding: 0;
    background: var(--bg-gradient); /* Use background instead of background-color */
    color: var(--text-color);
    background-attachment: fixed; /* Optional: Keeps the gradient in place when scrolling */
}


h1, h3 {
    text-align: center;
    color: var(--text-color);
}

input {
    all: unset;
    border: none;
    background-color: var(--input-bg) !important;
    border-radius: 5px;
    color: var(--text-color) !important;
    appearance: none !important; /* "unset" might not work as expected */
    height: 30px;
    font-family: "Rubik", sans-serif !important;
}

/* Force autofill fields to match your background */


/* Override internal autofill selection */
input:-internal-autofill-selected {
    box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    font-family: "Rubik", sans-serif !important;
}

button {
    outline: none;
    border: none;
    color: var(--text-color);
    background-color: var(--default-button-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 7px;
}

button:hover {
    background-color: var(--default-button-hover-color);
}

.wrapper {
    width: 100vw;
    height: 100vh;

    display: grid;

    grid-template-columns: 1fr;
    grid-template-rows: 45vh 5px 1fr;
}

.workarea-wrapper {
    grid-row: 3/4;
    grid-column: 1/2;

    overflow: auto;
}

.popup-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--shadow-color);
    z-index: 1000;
    color: var(--text-color);
}


/************/
/* GPS Styling */
/************/

.tracking-container {
    display: flex;
    justify-content: center;
}

.tracking-container button {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 15px;
}





/************/
/* Settings Styling */
/************/

#exit-settings-button {
    width: 30px;
    height: 30px; 
    position: fixed;
    top: 3px;
    left: 13px;
}

#logoutButton {
    background-color: var(--danger-bg);
}
#logoutButton:hover {
    background-color: var(--danger-hover-bg);
}

.settings-wrapper {
    height: 80vh;
    width: 70vw;

    display: none;
    flex-direction: column;
}

.settings-wrapper button {
    margin-top: 10px;
}





/************/
/* Scaler Styling */
/************/

#scaler {
    background-color: var(--bg-color);
    cursor: ns-resize;
}

#scaler:hover {
    background-color: var(--marked-scaler-color);
}




/************/
/* Map Styling */
/************/

#map {
    grid-row: 1/2;
    grid-column: 1/2;
    box-shadow: 0 2px 5px var(--shadow-color);
}




/************/
/* Buttons Styling */
/************/

.left-bar {
    position: absolute;

    margin-top: 0px;

    width: 60px;
    height: 200px;


    display:flex;
    flex-direction: column;
    align-items: center;
}
.left-bar button{
    position: relative;
    margin-top: 10px;
    width: 40px;
    height: 40px;
}

#clear-paths {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: var(--danger-bg);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#clear-paths:hover {
    background-color: var(--danger-hover-bg);
}

#save-walk {
    padding: 10px 15px;
    cursor: pointer;
    background-color: var(--button-bg);
    color: white;
    border: none;
    border-radius: 5px;
}

#save-walk:hover {
    background-color: var(--button-hover-bg);
}

.deleteBtn {
    background: none;
    border: none;
    cursor: pointer;
    color: red;
    font-size: 18px;
    margin-left: 10px;
}




/************/
/* Inputs Styling */
/************/

.input-container {
    width: 80%;
    margin: 20px auto;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

#podcast-input::placeholder {
    font-weight: bold;
    opacity: 0.5;
    color: var(--place-holder-color);
}

#podcast-input {
    width: 70%;
    height: 20px;
    padding: 8px;
    margin-right: 10px;
    margin-left: 10px;
}




/************/
/* History List Styling */
/************/

#walk-history {
    width: 80%;
    margin: 20px auto;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

#history-list {
    list-style-type: none;
    padding: 0;
}

#history-list li {
    padding: 10px;
    background-color: var(--input-bg);
    margin: 5px 0;
    border-radius: 5px;
    box-shadow: 0 1px 2px var(--shadow-color);
}




/************/
/* Tooltip Styling */
/************/

.leaflet-tooltip {
    background-color: var(--card-bg);
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    max-width: 200px;
    color: var(--text-color);
}

.leaflet-tooltip img {
    max-width: 40px;
    max-height: 40px;
    object-fit: cover;
    margin-bottom: 5px;
}




/************/
/* Auth Overlay Styling */
/************/

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Auth Popup */
#authPopup {
    flex-direction: column;


}

/************/
/* Privacy Policy Page */
/************/
.privacy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.privacy-container h1 {
    text-align: center;
    color: #007bff;
    margin-bottom: 10px;
}

.privacy-container h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-top: 30px;
}

.privacy-container h3 {
    color: #0056b3;
    margin-top: 20px;
}

.privacy-container p {
    font-size: 16px;
    margin: 10px 0;
}

.privacy-container ul {
    list-style-type: none;
    padding: 0;
}

.privacy-container ul li {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 5px;
    border-left: 4px solid #007bff;
}

.privacy-container a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.privacy-container a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .privacy-container {
        width: 90%;
        padding: 15px;
    }
}


/************/
/* Cookies popup */
/************/
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none; /* Hidden by default */
}

.cookie-popup a {
    color: #ababab;
    text-decoration: underline;
}

.cookie-popup button {
    margin-top: 10px;
    background: #ffffff;
    color: black;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-popup button:hover {
    background: #bcbcbc;
}
