:root {
    /* Color Palette */
    --primary: #2e7d32;
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --secondary: #fbc02d;
    --accent: #4caf50;
    --background: #f4f7f6;
    --surface: #ffffff;
    --text: #2c3e50;
    --text-muted: #7f8c8d;
    --error: #e74c3c;
    --success: #2ecc71;
    --border: #e0e0e0;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Shadows */
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Noto Sans Thai', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

/* Layout */
.container {
    width: 100%;
    max-width: 600px; /* Mobile focused */
    margin: 0 auto;
    padding: var(--spacing-md);
}

header {
    background-color: var(--surface);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

.logo img {
    height: 32px;
}

/* Cards */
.card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.card:active {
    transform: scale(0.98);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: #fafafa;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Utilities */
.text-center { text-align: center; }
.mt-md { margin-top: var(--spacing-md); }
.mb-md { margin-bottom: var(--spacing-md); }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-sm { gap: var(--spacing-sm); }

/* Grid for Dashboard */
.plot-list {
    display: grid;
    gap: var(--spacing-md);
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        max-width: 1000px;
    }
    .plot-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .btn {
        width: auto;
    }
}
