:root {
    --color-highlight: #F5DEB3FF;
    --color-background-dark: #3b3b3b;
    --color-background-dark-light: #5c5c5c;
    --color-text-white: #e3e3e3;
}

input:focus {
    outline: 0;
    /* some people use shadows too */
    box-shadow: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Settings Overlay Styles */
.settings-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.settings-content {
    background-color: var(--color-background-dark);
    color: var(--color-text-white);
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.settings-content input {
    color: var(--color-highlight);
    background: var(--color-background-dark-light);
}

.settings-content input:focus {
    border: 2px solid var(--color-highlight);
}

.settings-content code {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text-white);
}

.close-settings {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close-settings:hover,
.close-settings:focus {
    color: black;
    text-decoration: none;
}

.settings-nav {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.settings-nav-item {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.settings-nav-item.active {
    border-bottom: 3px solid var(--color-highlight);
    font-weight: bold;
}

.settings-section {
    display: none;
    background-color: var(--color-background-dark);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-section.active {
    display: block;
}

.settings-section .btn {
    border: 1px solid;
}

.btn.btn-danger {
    background: #995353;
    font-weight: bolder;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.user-row.selected {
    background-color: var(--color-highlight);
    color: var(--color-background-dark);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"], input[type="password"], input[type="url"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: var(--color-text-white);
    background-color: var(--color-background-dark-light);

}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    color: var(--color-highlight);
    background-color: var(--color-background-dark-light);
}

.queue-status {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.queue-card {
    background-color: var(--color-background-dark);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--color-highlight);
    color: var(--color-text-white);
    flex: 1;
    min-width: 200px;
}

.queue-name {
    font-weight: bold;
    margin-bottom: 10px;
}

.queue-count {
    font-size: 24px;
    color: var(--color-highlight);
}

.queue-time {
    margin-top: 10px;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-highlight);
    width: 0%;
    transition: width 0.5s ease;
}

/* Places Management Styles */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.place-map {
    height: 250px;
    width: 250px;
}

.place-card {
    background-color: var(--color-background-dark);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-highlight);
    color: var(--color-text-white);
}

.place-details {
    padding: 15px;
}

.place-info {
    margin: 15px 0;
    font-size: 0.9em;
}

.place-info div {
    margin-bottom: 5px;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pagination-buttons {
    display: flex;
    gap: 10px;
}

header {
    position: absolute;
    top: 0;
    left: 40%;
    z-index: 10;
    background: rgba(59, 59, 59, 0.62);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.timeline::-webkit-scrollbar {
    display: none;
}

.timeline {
    position: fixed;
    top: 0;
    width: 50%;
    bottom: 0;
    background: var(--color-background-dark);
    background: linear-gradient(90deg, rgb(17, 17, 17) 0%, rgba(59, 59, 59, 0.49) 76%, rgba(255, 255, 255, 0) 100%);
    z-index: 5;
    overflow-y: auto;
    pointer-events: none;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.timeline-container {
    font-family: "Serif";
    width: 350px;
    padding-bottom: 250px;
}

.timeline-entry {
    color: #bfbfbf;
    padding: 1rem 2rem;
    transition: color, padding 0.5s ease-in-out;
    font-weight: lighter;
    pointer-events: all;
}

.timeline-entry.active {
    color: #f8f8f8;
    padding: 1rem 2.5rem;
    transition: color, padding 0.5s ease-in-out;
}

.timeline-entry .entry-description {
    font-family: "Fraunces";
    font-size: 3rem;
    transition: font-size 0.5s ease-in-out;
}

.timeline-entry.active .entry-description {
    font-family: "Fraunces";
    font-size: 5rem;
    transition: font-size 0.5s ease-in-out;
}

.htmx-request .htmx-indicator {
    display: inline;
}

button {
    background-color: transparent;
    color: wheat;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #959595;
}

.timeline-header {
    display: inline-flex;
    align-items: baseline;
    padding: 8px;
    border-bottom: 1px black;
    margin-left: 2rem;
    pointer-events: auto;
    position: sticky;
    font-size: 1.4rem;
}

.date-item.selected {
    background-color: unset;
    color: wheat;
    transform: scale(1.05);
    box-shadow: unset;
}

.month-item.selected {
    background-color: var(--color-highlight);
    color: wheat;
    font-weight: bolder;
    background: unset;
}

.year-item.selected {
    background-color: var(--color-highlight);
    color: wheat;
    font-weight: bolder;
    background: unset;
}

.today-button {
    background-color: unset;
}

.date-item {
    padding: unset;
    margin: unset;
    border-radius: 0;
}

.date-item:hover {
    background-color: unset;
    border-bottom: 1px solid white;
}

.date-item.selected:hover {
    border-bottom: 0;
}

.date-item .day-name,
.date-item .day-number {
    font-size: 2rem;
    font-weight: lighter;
}

.horizontal-date-picker {
    position: fixed;
    font-family: "Fraunces";
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(59, 59, 59, 0.68);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    z-index: 50;
    box-shadow: unset;
}

.upload-options progress {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

/* Language Selection Styles */
.language-selection {
    margin-top: 20px;
}

.language-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 800px;
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    background-color: var(--color-background-dark-light);
    color: var(--color-text-white);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    min-height: 60px;
}

.language-btn:hover {
    background-color: var(--color-background-dark);
    border-color: var(--color-highlight);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.language-btn.active {
    background-color: var(--color-highlight);
    color: var(--color-background-dark);
    border-color: var(--color-highlight);
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(245, 222, 179, 0.4);
}

.language-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 222, 179, 0.5);
}

.language-flag {
    font-size: 1.5rem;
    margin-right: 12px;
    display: inline-block;
}

.language-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.language-btn.active .language-name {
    font-weight: bold;
}

@media (max-width: 600px) {
    .language-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .language-btn {
        padding: 12px 16px;
        min-height: 50px;
    }

    .language-flag {
        font-size: 1.3rem;
        margin-right: 10px;
    }

    .language-name {
        font-size: 1rem;
    }
}

/* Collapsible details styling */
details {
    color: var(--color-text-white);
}

details summary {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: var(--color-background-dark);
    color: var(--color-text-white);
    transition: background-color 0.2s ease;
    border: 1px solid;
}

details > div {
    border-bottom: 1px solid;
    border-left: 1px solid;
    border-right: 1px solid;
}

details:first-child > summary {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

details:not([open]):last-child > summary {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
details summary:hover {
    background-color: var(--color-background-dark-light);
}

input[type=file]::file-selector-button {
    background-color: var(--color-background-dark);
    color: var(--color-text-white);
    border: 1px solid var(--color-highlight);
    padding: 10px 15px;
    margin-right: 20px;
    transition: .5s;
}

input[type=file]::file-selector-button:hover {
    background-color: var(--color-background-dark-light);
}

.visit-popup {
    white-space: preserve-breaks;
    width: 14rem;
    font-family: "Fraunces";
    font-size: 0.8rem;
    line-height: 1.5rem;
    border-radius: 8px;
    padding: 8px;
    background: #3b3b3bbf;
    color: white;
}

/* Timeline Scroll Indicator Styles */
.timeline-scroll-indicator {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 30vh;
    width: 8px;
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding-top: 100px;
    padding-bottom: 250px;
}

.timeline-scroll-indicator:hover {
    opacity: 1;
}

.scroll-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(245, 222, 179, 0.3) 0%,
    rgba(245, 222, 179, 0.6) 50%,
    rgba(245, 222, 179, 0.3) 100%);
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-highlight);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
}

.leaflet-container .photo-marker-icon img {
    width: 100%;
}

.statistics-content {
    margin-left: 30rem;
    color: var(--color-text-white);
    font-family: "Fraunces", serif;
    background: transparent;
    z-index: 1000;
    position: relative;
    font-weight: 300;
    font-size: 1.4rem;
    max-height: 100vh;
    padding: 2rem;
}

.statistics-content h2 {
    font-weight: 300;
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.statistics-content h3 {
    font-weight: 300;
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
}

.statistics-section {
    margin-bottom: 3rem;
}

/* Top Places Grid Styles */
.places-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.place-stats-card {
    background: var(--color-background-dark);
    border: 1px solid var(--color-highlight);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.place-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(245, 222, 179, 0.2);
}

.place-map-container {
    width: 240px;
    height: 240px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-highlight);
    position: relative;
}

.place-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-highlight);
    margin-bottom: 0.8rem;
    word-wrap: break-word;
}

.place-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.place-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(245, 222, 179, 0.2);
}

.place-stat-item:last-child {
    border-bottom: none;
}

.place-stat-label {
    font-size: 1rem;
    color: var(--color-text-white);
    opacity: 0.8;
}

.place-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-highlight);
}

/* Transport Statistics Table Styles */
.transport-stats-table {
    background: var(--color-background-dark);
    border: 1px solid var(--color-highlight);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.transport-table-header {
    background: var(--color-background-dark-light);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--color-highlight);
    border-bottom: 2px solid var(--color-highlight);
}

.transport-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(245, 222, 179, 0.1);
    transition: background-color 0.2s ease;
}

.transport-table-row:hover {
    background: var(--color-background-dark-light);
}

.transport-table-row:last-child {
    border-bottom: none;
}

.transport-mode {
    font-weight: 500;
    color: var(--color-text-white);
    text-transform: capitalize;
}

.transport-distance {
    color: var(--color-highlight);
    font-weight: 600;
}

.transport-trips {
    color: var(--color-text-white);
    opacity: 0.9;
}

/* Transport Charts Styles */
.transport-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(700px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.transport-chart-section {
    background: var(--color-background-dark);
    border: 1px solid var(--color-highlight);
    border-radius: 12px;
    padding: 1.5rem;
}

.transport-chart-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-highlight);
    margin-bottom: 1rem;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.pie-chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1200px) {
    .transport-charts-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.statistics-panel {
}

.background-dark {
    background: var(--color-background-dark);
}
@media (max-width: 800px) {
    .timeline-entry .entry-description {
        font-size: 1.2rem;
        font-weight: normal;
    }

    .timeline-entry {
        font-size: 1rem;
        color: white;
    }

    .timeline-entry.active {
        color: wheat;
    }

    .timeline-entry.active .entry-description {
        font-size: 2rem;
    }

    .timeline {
        width: 90%;
    }

    .timeline-scroll-indicator {
        left: 5px;
        width: 4px;
        height: 50vh;
    }

    .scroll-thumb {
        width: 8px;
        height: 16px;
        border-radius: 4px;
    }

    .scroll-thumb::before {
        width: 4px;
        height: 4px;
    }
}

.text-align-left {
    text-align: left;
}
