/* Reset & Variables */
:root {
    --primary: #0070f3;
    --dark-bg: #1e1e1e;
    --sidebar-w: 300px;
    --border: #333;
}

body, html { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: #121212; height: 100%; overflow: hidden; }

/* Main Editor Layout */
.editor-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.editor-sidebar {
    width: var(--sidebar-w);
    background: var(--dark-bg);
    border-right: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: white;
}

.sidebar-title { font-size: 1.2rem; margin-bottom: 20px; font-weight: bold; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

/* Draggable Blocks */
.block-tool {
    background: #2d2d2d;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: grab;
    transition: 0.3s;
    text-align: center;
    border: 1px solid transparent;
}

.block-tool:hover { border-color: var(--primary); background: #333; }

/* AdSense Kit Panel */
.adsense-panel {
    margin-top: auto;
    background: #252525;
    padding: 15px;
    border-radius: 8px;
}

.adsense-panel input {
    width: 100%;
    background: #111;
    border: 1px solid var(--border);
    color: white;
    padding: 10px;
    margin: 5px 0 15px 0;
    border-radius: 4px;
}

/* The Canvas */
.editor-canvas {
    flex-grow: 1;
    background: #121212;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.canvas-item {
    width: 100%;
    max-width: 900px;
    background: white;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 50px;
}

.canvas-item:hover { outline: 2px solid var(--primary); }

/* Buttons */
.btn-publish {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.delete-btn {
    position: absolute;
    right: -45px;
    top: 0;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}
