@font-face {
    font-family: 'Carattere';
    src: url('../fonts/carattere-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header .container {
    padding: 0 20px;
    max-width: none;
}

.header {
    background: linear-gradient(90deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 8px 0;
    border-bottom: 1px solid #404040;
    height: 64px;
    box-sizing: border-box;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    font-size: 48px;
    font-family: 'Carattere', cursive;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    padding: 8px 16px;
    background-color: #404040;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: #505050;
}

.nav-link.active {
    background-color: #606060;
}

.main-content {
    height: calc(100vh - 64px);
}

.main-content .container {
    height: 100%;
    padding: 0;
    max-width: none;
}

#content-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sliding Trips List Styles */
.trips-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trips-overlay.active {
    opacity: 1;
    visibility: visible;
}

.trips-panel {
    position: absolute;
    top: 64px; /* Below header */
    right: 0;
    width: 350px;
    max-width: 90vw;
    height: calc(100vh - 64px);
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-left: 1px solid #404040;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.trips-overlay.active .trips-panel {
    transform: translateX(0);
}

.trips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #404040;
    background: #2a2a2a;
}

.trips-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #404040;
}

.trips-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.trips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trip-item {
    padding: 16px 20px;
    border-bottom: 1px solid #333333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.trip-item:hover {
    background-color: #333333;
}

.trip-name {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 4px;
}

.trip-date {
    font-size: 12px;
    color: #888888;
    margin-bottom: 6px;
}

.trip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.trip-tag {
    background: #404040;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.trip-tag.no-tags {
    background: #2a2a2a;
    color: #666666;
    font-style: italic;
}

.trips-loading,
.trips-error {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
    font-size: 14px;
}

.trips-error {
    color: #ff6b6b;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .trips-panel {
        width: 100vw;
        max-width: 100vw;
    }
}
