* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #F0E0D6;
    color: #800000;
    font-size: 24px;
    line-height: 1.4;
}

.header {
    background-color: #D0D0D0;
    border-bottom: 2px solid #B7C4D8;
    padding: 15px;
    margin-bottom: 20px;
}

.board-nav {
    margin-bottom: 15px;
    font-size: 14px;
}

.board-nav a {
    color: #0056B3;
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.board-nav a:hover {
    background-color: #B7C4D8;
    color: #0056B3;
}

.board-nav a.active {
    background-color: #B7C4D8;
    color: #0056B3;
}

.board-title h1 {
    font-size: 24px;
    font-weight: bold;
    color: #0056B3;
    margin-bottom: 5px;
}

.board-desc {
    font-size: 11px;
    color: #666600;
    font-style: italic;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.homepage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.board-card {
    background-color: #EEDFCC;
    border: 1px solid #B7C4D8;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px rgba(183, 196, 216, 0.3);
    border-color: #B7C4D8;
}

.board-card h2 {
    color: #800000;
    margin-bottom: 10px;
    font-size: 20px;
}

.board-card p {
    color: #666600;
    margin-bottom: 15px;
    font-size: 14px;
}

.board-card .board-link {
    display: inline-block;
    background-color: #B7C4D8;
    color: #0056B3;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    border: 1px solid #B7C4D8;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 160px;
}

.board-card .board-link:hover {
    background-color: #D0D0D0;
    color: #0056B3;
    border-color: #D0D0D0;
}

.board-content {
    display: none;
}

.board-content:first-child {
    display: block;
}

.thread-form {
    background-color: #EEDFCC;
    border: 1px solid #B7C4D8;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.thread-form h2 {
    font-size: 16px;
    color: #800000;
    margin-bottom: 10px;
    font-weight: bold;
}

.subject-input, .comment-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #B7C4D8;
    background-color: #FFFFFF;
    color: #800000;
    font-family: inherit;
    font-size: 12px;
    border-radius: 3px;
}

.subject-input:focus, .comment-input:focus {
    outline: none;
    border-color: #B7C4D8;
    box-shadow: 0 0 5px rgba(183, 196, 216, 0.2);
}

.comment-input {
    height: 100px;
    resize: vertical;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.form-options select {
    padding: 5px;
    border: 1px solid #444;
    background-color: #1E1E1E;
    color: #D4D4D4;
    font-family: inherit;
    font-size: 12px;
    border-radius: 3px;
}

.form-options button {
    background-color: #B7C4D8;
    color: #0056B3;
    border: 1px solid #B7C4D8;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #D0D0D0;
    color: #0056B3;
}

/* Thread styles */
.thread {
    background-color: #EEDFCC;
    border: 1px solid #B7C4D8;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.thread-header {
    border-bottom: 1px solid #B7C4D8;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.thread-subject {
    font-size: 14px;
    font-weight: bold;
    color: #800000;
    margin-bottom: 5px;
}

.thread-meta {
    font-size: 11px;
    color: #666600;
}

.thread-meta .post-number {
    color: #0056B3;
    text-decoration: none;
    cursor: pointer;
}

.thread-meta .post-number:hover {
    color: #800000;
}

.thread-content {
    margin-bottom: 10px;
    word-wrap: break-word;
    color: #800000;
}

.thread-content .greentext {
    color: #008000;
}

.thread-content .quote {
    color: #0000FF;
    font-style: italic;
}

.thread-replies {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #B7C4D8;
}

.reply {
    background-color: #FFFFFF;
    border: 1px solid #B7C4D8;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.reply-meta {
    font-size: 11px;
    color: #666600;
    margin-bottom: 5px;
}

.reply-content {
    word-wrap: break-word;
    color: #800000;
}

.thread-actions {
    margin-top: 10px;
    font-size: 11px;
}

.thread-actions button {
    background-color: #333;
    border: 1px solid #555;
    padding: 2px 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    margin-right: 5px;
    color: #D4D4D4;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.thread-actions button:hover {
    background-color: #00A8E8;
    border-color: #00D4FF;
    color: #FFF;
}

/* Todo specific styles */
.todo-item {
    margin: 8px 0;
    padding: 10px;
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 3px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.todo-item:hover {
    border-color: #00A8E8;
    box-shadow: 0 0 5px rgba(0, 168, 232, 0.1);
}

.todo-item.completed {
    opacity: 0.6;
    background-color: #1A1A1A;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #888;
}

.todo-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
}

.todo-text {
    flex: 1;
    color: #D4D4D4;
}

.todo-priority {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 10px;
}

.todo-priority.high {
    background-color: #FF6B6B;
    color: #FFF;
}

.todo-priority.medium {
    background-color: #FFD700;
    color: #000;
}

.todo-priority.low {
    background-color: #789922;
    color: #FFF;
}

.todo-stats {
    background-color: #EEDFCC;
    border: 1px solid #B7C4D8;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
}

.todo-stats h3 {
    color: #800000;
    margin-bottom: 10px;
}

.stat-item {
    display: inline-block;
    margin: 0 15px;
    color: #666600;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #0056B3;
}

/* SR specific styles */
.sr-item {
    background-color: #252525;
    border: 1px solid #444;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    position: relative;
}

.sr-subject {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 5px;
}

.sr-subject.physics {
    background-color: #00A8E8;
    color: #FFF;
}

.sr-subject.chemistry {
    background-color: #FF6B6B;
    color: #FFF;
}

.sr-subject.mathematics {
    background-color: #789922;
    color: #FFF;
}

.sr-topic {
    font-size: 14px;
    font-weight: bold;
    color: #00D4FF;
    margin-bottom: 8px;
}

.sr-content {
    color: #D4D4D4;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.sr-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.sr-next-review {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.sr-next-review.due {
    background-color: #FF6B6B;
    color: #FFF;
    animation: pulse 2s infinite;
}

.sr-next-review.upcoming {
    background-color: #FFD700;
    color: #000;
}

.sr-next-review.future {
    background-color: #789922;
    color: #FFF;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Footer */
.footer {
    background-color: #D0D0D0;
    border-top: 2px solid #B7C4D8;
    padding: 15px;
    text-align: center;
    font-size: 11px;
    color: #666600;
    margin-top: 40px;
}

/* Reply form */
.reply-form {
    margin-top: 10px;
    padding: 10px;
    background-color: #1A1A1A;
    border: 1px solid #444;
    border-radius: 3px;
    display: none;
}

/* Delete button styling */
.delete-btn {
    background-color: transparent;
    color: #FF6B6B;
    border: 1px solid #FF6B6B;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background-color: #FF6B6B;
    color: #FFF;
    border-color: #FF4444;
}

.thread-actions button {
    background-color: #B7C4D8;
    border: 1px solid #B7C4D8;
    color: #0056B3;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.thread-actions button:hover {
    background-color: #D0D0D0;
    color: #0056B3;
}

.reply-form textarea {
    width: 100%;
    height: 60px;
    padding: 5px;
    border: 1px solid #444;
    background-color: #252525;
    color: #D4D4D4;
    font-family: inherit;
    font-size: 12px;
    resize: vertical;
    margin-bottom: 5px;
    border-radius: 3px;
}

.reply-form button {
    background-color: #00A8E8;
    border: 1px solid #00D4FF;
    padding: 3px 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    color: #FFF;
    border-radius: 3px;
    margin-right: 5px;
}

.reply-form button:hover {
    background-color: #00D4FF;
}
