/* Base styles */
:root {
    --primary-color: #4a90e2;
    --background-color: #f0f0f0;
    --border-color: #ccc;
    --text-color: #333;
    --success-color: #4caf50;
    --error-color: #f44336;
}

body {
    font-family: "Courier New", Courier, monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary-color);
}

.subtitle {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

/* Message input styles */
.message-input {
    background: white;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.char-counter {
    position: absolute;
    bottom: -1.5rem;
    right: 0;
    font-size: 0.8rem;
    color: #666;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #357abd;
}

/* Message feed styles */
.message-feed {
    background: white;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fafafa;
}

.message-content {
    margin-bottom: 0.5rem;
}

.message-timestamp {
    font-size: 0.8rem;
    color: #666;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 1rem;
    border-top: 2px solid var(--border-color);
}

.archive-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.archive-link:hover {
    text-decoration: underline;
}

/* Status messages */
.status {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    text-align: center;
}

.status.success {
    background-color: #e8f5e9;
    color: var(--success-color);
}

.status.error {
    background-color: #ffebee;
    color: var(--error-color);
}

/* Archive styles */
.archive-nav {
    background: white;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumbs {
    font-size: 1.1rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.breadcrumbs a:hover {
    background-color: #f0f7ff;
    text-decoration: none;
}

.archive-navigation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.years, .months, .days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.8rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 6px;
}

.archive-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.archive-navigation a:hover {
    background: #f0f7ff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.archive-navigation a.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.home-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.home-link:hover {
    background-color: #f0f7ff;
    text-decoration: none;
}
