/* style.css - modern simple */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #eaf5e7 0%, #f7fbf7 100%);
    color: #1b1b1b;
}

.header {
    background: #2e7d32;
    color: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-btn {
    font-size: 22px;
    cursor: pointer;
    border: none;
    background: none;
    color: white;
}

.container {
    max-width: 980px;
    margin: 28px auto;
    padding: 0 16px;
}

.layout {
    display: flex;
    gap: 20px;
}


/* sidebar */

.sidebar {
    width: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    height: fit-content;
}

.sidebar h3 {
    margin: 4px 0 12px;
}

.menu-item {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #2e7d32;
    font-weight: 600;
}

.menu-item:hover {
    background: #f0fff3;
}


/* main card */

.main {
    flex: 1;
}

.card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.04);
    margin-bottom: 18px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    background: #2e7d32;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 12px;
}

.result {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f6fff7, #ffffff);
    border-left: 6px solid #2e7d32;
    font-weight: 600;
}

.history-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffffff, #fbfffb);
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.small {
    color: #777;
    font-size: 13px;
}

.admin-panel {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.canvas-box {
    width: 100%;
    max-width: 560px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width:900px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}