/*doing css after a long time hope that designing doesnt fail */
:root{
    --bg-color:#1a1a1a;
    --panel: #2b2b2b;
    --text: #e0e0e0;
    --accent:#00adb5;
    --accent-hover: #007f85;
    --wall:#303e46;
    --path:#ffd369;
    --visited:rgba(0,173,181,0.3);
    --start:#00ff66;
    --end: #ff0055;
    --weight:#5c4b37;
}
*{
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}
body{
    background-color: var(--bg-color);
    color: var(--text);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
header{
    background-color: var(--panel);
    padding: 1rem;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    z-index: 10;
}
.title-section h1{
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.title-section h1{
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}
/*evening + coding + songs + best mood = best thing ever*/
.controls{
    display: flex;
    gap: 15px;
    align-items: center;
}
select{
    padding: 8px 12px;
    background-color: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}
select:hover{
    border-color: var(--accent);
}
button{
    padding: 8px 20px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s background-color 0.2s;
}
button:hover{
    background-color: var(--accent-hover);
}
button:active{
    transform: scale(0.98);
}
button.secondary{
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
button.secondary:hover{
    background-color: rgba(255,77,77,0.1);
}
.main-container{
    display: flex;
    flex: 1;
    height: calc(100vh - 70px);
}
.sidebar{
    width: 250px;
    background-color: #222;
    border-right: 1px solid #444;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}
.sidebar-section{
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}
.sidebar-section h3{
    font-size: 0.9rem;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.legend-item{
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.box{
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
    border:1px solid rgba(255, 255, 255, 0.1);/*lmao declared border before border radius does that work? checked it doe work :heavysob*/
}
.box.end{
    background-color: var(--end);
}
.box-wall{
    background-color: var(--wall);
}
.box-start{
    background-color: var(--start);
}
.box-visited{
    background-color: var(--visited);
}
.box.path{
    background-color: var(--path);
}
.box-weight{
    background-color: var(--weight);
}
.stats-output{
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}
.canvas-wrapper{
    flex: 1;
    position: relative;
    background-color: #121212;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
canvas{
    cursor: crosshair;
}
.toast{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.toast.show{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 10px;
}
/*finished finally*/