* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #111318;
    color: white;
    overflow: hidden;
}

button,
.upload-btn,
.big-upload {
    font-family: inherit;
}

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TOP BAR */

.topbar {
    height: 64px;
    background: #191c23;
    border-bottom: 1px solid #2b2f39;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
}

.logo span {
    color: #7c5cff;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

button,
.upload-btn {
    border: 1px solid #343945;
    background: #232732;
    color: white;

    padding: 9px 13px;
    border-radius: 7px;

    cursor: pointer;
    transition: 0.15s;
}

button:hover,
.upload-btn:hover {
    background: #303542;
}

button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.export {
    background: #6c4cff;
    border-color: #6c4cff;
    font-weight: 700;
}

.export:hover {
    background: #7d61ff;
}

/* WORKSPACE */

.workspace {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* SIDEBAR */

.sidebar {
    width: 285px;
    background: #191c23;
    border-right: 1px solid #2b2f39;

    padding: 16px;

    overflow-y: auto;
}

.panel {
    border-bottom: 1px solid #2b2f39;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.panel h3 {
    margin: 0 0 12px;
    font-size: 13px;
    color: #aeb4c2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel button {
    width: 100%;
    margin-top: 8px;
}

.file-info {
    font-size: 13px;
    color: #aeb4c2;
    line-height: 1.6;
}

.selected-info {
    background: #111318;
    border: 1px solid #30343e;
    border-radius: 7px;

    padding: 10px;

    font-size: 12px;
    color: #aeb4c2;

    min-height: 55px;
}

.help {
    font-size: 12px;
    line-height: 1.6;
    color: #858b98;
}

.help strong {
    color: #dfe2e9;
}

/* EDITOR */

.editor-area {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.editor-header {
    height: 42px;

    background: #15181e;
    border-bottom: 1px solid #2b2f39;

    display: flex;
    align-items: center;

    padding: 0 16px;

    font-size: 12px;
    color: #8e95a3;
}

.canvas-wrapper {
    flex: 1;

    overflow: auto;

    background:
        linear-gradient(45deg, #171a20 25%, transparent 25%),
        linear-gradient(-45deg, #171a20 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #171a20 75%),
        linear-gradient(-45deg, transparent 75%, #171a20 75%);

    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;

    padding: 35px;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* WEBSITE PREVIEW */

.website-frame {
    background: white;

    min-height: 700px;

    box-shadow: 0 15px 50px rgba(0,0,0,.45);

    transition: width .2s;
    overflow: hidden;
}

.website-frame.desktop {
    width: 1100px;
}

.website-frame.tablet {
    width: 768px;
}

.website-frame.mobile {
    width: 390px;
}

.website-frame iframe {
    width: 100%;
    height: 800px;
    border: 0;
    display: block;
}

/* EMPTY */

.empty-state {
    height: 700px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    color: #555;
}

.empty-icon {
    font-size: 55px;
}

.empty-state h2 {
    color: #222;
    margin-bottom: 5px;
}

.empty-state p {
    color: #777;
}

.big-upload {
    margin-top: 15px;

    background: #6c4cff;
    border-color: #6c4cff;

    padding: 12px 20px;

    font-weight: bold;
}

/* MODAL */

.modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.65);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 100;
}

.hidden {
    display: none;
}

.modal-box {
    width: 500px;

    background: #1b1e25;

    border: 1px solid #363b47;
    border-radius: 12px;

    padding: 22px;

    box-shadow: 0 20px 70px rgba(0,0,0,.5);
}

.modal-box h2 {
    margin-top: 0;
}

textarea {
    width: 100%;
    min-height: 180px;

    resize: vertical;

    background: #111318;
    border: 1px solid #363b47;

    border-radius: 8px;

    color: white;

    padding: 12px;

    font-family: inherit;
    font-size: 15px;

    outline: none;
}

textarea:focus {
    border-color: #6c4cff;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 15px;
}

.primary {
    background: #6c4cff;
    border-color: #6c4cff;
}