:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --secondary: #34495e;
    --accent: #e74c3c;
    --bg: #f5f7fa;
    --text: #2c3e50;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-danger {
    background: var(--accent);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
    box-shadow: var(--shadow);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

nav .menu a {
    margin-left: 1.5rem;
    color: var(--secondary);
    font-weight: 500;
}

nav .menu a:hover {
    color: var(--primary);
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, #e8f5e9 100%);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.form-container {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    box-sizing: border-box; /* Fix width issue */
}

/* Planner Specifics */
.planner-layout {
    display: flex;
    height: calc(100vh - 64px); /* header height approx */
    overflow: hidden;
}

.planner-toolbar {
    width: 300px;
    background: var(--white);
    border-left: 1px solid #ddd;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

.planner-canvas-container {
    flex: 1;
    background: #e0e0e0; /* Grid bg color */
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.planner-canvas-container:active {
    cursor: grabbing;
}

.layer-panel, .object-panel {
    background: #f9f9f9;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid #eee;
}

.layer-item {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    background: var(--white);
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.layer-item.active {
    border-color: var(--primary);
    background: #e8f5e9;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.tool-btn {
    padding: 10px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.tool-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
