/* General Body & Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa; /* A slightly lighter, standard gray */
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

main { max-width: 700px; width: 100%; }

/* Typography */
h1 { text-align: center; color: #2c3e50; }

/* Keyframe animation for new entries */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form & Button Styles */
/* The form itself is now inside a card, so we don't need specific styles for it. */

textarea { min-height: 100px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; margin-bottom: 10px; resize: vertical; }
button { padding: 10px 15px; background-color: #3498db; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; align-self: flex-end; }
button:hover { background-color: #2980b9; }

.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:visited {
    background-color: #3498db !important;
    border-color:  #56BAFD !important;
}

/* Entry Styles */
.entry-time { 
    font-size: 0.8rem; 
    color: #777;
}

.geo { 
    font-size: 0.8rem; 
    color: #050; 
}

/* Alternative entry style */
.entry {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out forwards; /* Apply the fade-in animation */
}

/* The header remains the same, but let's ensure it's styled well */
.entry-header {
    display: flex;
    justify-content: space-between; /* Pushes time to the left and geo to the right */
    align-items: center;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
}

/* The new stats bar */
.entry-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between each stat */
    padding: 10px 0;
    margin-bottom: 10px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8em;
    color: #555;
}

.stat strong {
    color: #333;
}

/* The text styling is the same */
.entry-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    color: #333;
    white-space: pre-wrap; 
    word-wrap: break-word; 
}