:root {
    --primary: #4a90e2;
    --bg: #f5f7fa;
    --text: #333;
    --card-bg: #fff;
    --border: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

#app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.hidden { display: none !important; }

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea, select {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
}

textarea { min-height: 100px; }

button {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}

button:hover { opacity: 0.9; }

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.journal-item {
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.journal-item:last-child { border-bottom: none; }

.meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    margin-right: 5px;
}

.internalized { background: #e3f2fd; color: #1976d2; }
.externalized { background: #fff3e0; color: #f57c00; }

.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
