@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body.folklore-app {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #000;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
}

/* --- THE UNIVERSAL 8-BIT BUTTON TRUTH --- */
/* Every interactive element now follows the btn-primary standard */
button, 
.btn-primary, 
#sidebar-toggle,
.sidebar-project-item {
    font-family: 'Press Start 2P', cursive !important;
    font-size: 0.7rem !important;
    color: #fff !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    background-color: #222 !important;
    display: inline-block !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    border: 4px solid #fff !important;
    box-shadow: 
        inset -4px -4px 0px 0px #444, 
        4px 4px 0px 0px #000 !important;
    position: relative !important;
    outline: none !important;
    transition: none !important;
    white-space: normal !important;
    height: auto !important;
    word-break: break-word;
}

/* Unified Hover State */
.btn-primary:hover, #sidebar-toggle:hover, .sidebar-project-item:hover {
    background-color: #3b82f6 !important;
}

/* Unified Active State */
.btn-primary:active, #sidebar-toggle:active, .sidebar-project-item:active {
    box-shadow: inset 4px 4px 0px 0px #000 !important;
    transform: translate(2px, 2px) !important;
}

/**
 * Layout Logic (Unchanged)
 */
.main-header {
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px; 
    background: #111;
    border-bottom: 4px solid #fff;
    flex-shrink: 0;
    z-index: 100;
    box-sizing: border-box;
}

.header-title {
    margin-left: 10px;
    white-space: nowrap;
}

.app-body {
    display: flex;
    flex-direction: row;
    flex-grow: 1; 
    width: 100%;
    overflow: hidden;
}

#sidebar-placeholder {
    width: 260px;
    height: 100%;
    flex-shrink: 0;
    border-right: 4px solid #fff;
    background: #000;
    transition: transform 0.2s steps(4), margin-left 0.2s steps(4);
}

#view-slot {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    background: #000;
    padding: 20px;
}

.sidebar-squashed #sidebar-placeholder {
    transform: translateX(-100%);
    margin-left: -260px;
    border-right: none;
}

.hidden {
    display: none !important;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* Heavy dimming */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.hidden {
    display: none;
}

/* Add to public/css/style.css */
#modal-mount {
    color: white;
    background: #111;
    border: 4px solid white;
    padding: 20px;
}

#modal-mount input {
    display: block;
    margin-bottom: 10px;
    background: #000;
    color: white;
    border: 1px solid white;
}