html {
    scrollbar-color: #0ba0ea #fbfdfd;
    scrollbar-width: thin;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(cleanbackground.jpg);
    background-size: cover;
    background-position: center;
}

.window-body p, .window-body div {
    line-height: 1.6;
}

.window-body a {
    display: inline-block;
    margin: 4px 0;
}



.floating-window {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    color: #1d1d1f;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

.floating-window > div:nth-child(2) { 
    flex: 1;
}

.window-header {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.window-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.window-body {
    padding: 30px;
}

.window-footer {
    padding: 15px 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #86868b;
    font-size: 0.85rem;
    margin-top: auto;
}



.window-nav {
    display: flex;
    gap: 16px;
}

.window-nav a {
    text-decoration: none;
    color: #515154;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.window-nav a:hover, .window-nav a.active {
    color: #0066cc;
}



.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.profile-image-container img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.grading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.apple-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease, background 0.2s ease;
}

.apple-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
}

.apple-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #1d1d1f;
}

.apple-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #515154;
    line-height: 1.5;
}

.security-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.terminal-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #515154; 
    font-family: inherit;
    padding: 18px;
    border-radius: 14px;
    margin: 14px 0;
    line-height: 1.6;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.apple-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apple-link-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.apple-link-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.apple-link-list a {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
}

.apple-link-list a:hover {
    text-decoration: underline;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #1d1d1f;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
}

.assignment-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d1d1f;
}

.project-link {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 500;
}



#map-container {
    position: relative;
    width: 100%;
    height: 550px;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 204, 0.1);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

#search-card {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 320px;
}

.input-group {
    position: relative;
    margin-bottom: 12px;
}

.input-group:last-of-type {
    margin-bottom: 0;
}

.input-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
}

.autocomplete-list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    font-size: 13px;
}

.autocomplete-list li:hover {
    background-color: #f8f9fa;
}

.autocomplete-list strong {
    display: block;
    color: #202124;
    font-size: 14px;
}

.autocomplete-list span {
    color: #70757a;
}

#route-options-panel {
    position: absolute;
    top: 130px;
    left: 20px;
    z-index: 1000;
    width: 320px;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.route-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.route-card.active-route {
    border-color: #4285F4;
    background: white;
}

.route-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.route-stats {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
}
.badge.fastest { background-color: #4285F4; }
.badge.safest { background-color: #34A853; }
.badge.balanced { background-color: #FBBC05; color: black; }



@media screen and (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 20px 12px;
    }
    .floating-window {
        margin: 10px auto;
        border-radius: 20px;
        max-width: 100%;
    }
    .window-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }
    .window-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    #search-card, #route-options-panel {
        width: 90%;
        left: 5%;
    }
}