/* src/styles/main.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.timeline {
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.post {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.post-date {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.post-text {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-coords {
    color: #3498db;
    font-size: 13px;
}

.input-area {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    min-height: 80px;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
}

.input-hint {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    padding: 8px;
    background: #fee;
    border-radius: 4px;
    display: none;
}

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

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    border: 1px solid #ddd;
}

.modal-content h3 {
    margin-bottom: 12px;
    color: #2c3e50;
}

.modal-content p {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.modal-content input:focus {
    outline: none;
    border-color: #3498db;
}

.modal-content input.error {
    border-color: #e74c3c;
}

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

.btn-ok, .btn-cancel {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    flex: 1;
}

.btn-ok {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.btn-cancel {
    background: #f8f9fa;
    color: #333;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 6px;
    }
    
    header {
        padding: 15px;
    }
    
    .modal-content {
        padding: 20px;
    }
}
