/* Chat page styles */
.chat-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.chat-nav .nav-link {
    color: #d4c9b8;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid rgba(42, 77, 62, 0.5);
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-nav .nav-link:hover {
    background-color: rgba(42, 77, 62, 0.3);
    border-color: #c9a868;
}

.chat-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

/* Note form styles */
.note-form-container {
    margin-top: 20px;
}

.user-setup {
    text-align: center;
    padding: 20px;
}

.user-setup h3 {
    color: #c9a868;
    margin-bottom: 15px;
    font-family: 'Special Elite', cursive;
}

.username-input {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#username {
    flex: 1;
    padding: 12px;
    background-color: rgba(13, 13, 13, 0.7);
    border: 1px solid #2a4d3e;
    color: #d4c9b8;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
}

.random-btn, .identity-btn {
    padding: 12px 20px;
    background-color: rgba(42, 77, 62, 0.7);
    color: #d4c9b8;
    border: 1px solid rgba(201, 168, 104, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Special Elite', cursive;
}

.random-btn:hover, .identity-btn:hover {
    background-color: rgba(66, 87, 104, 0.8);
    border-color: #c9a868;
}

.identity-btn {
    background-color: #2a4d3e;
    padding: 12px 30px;
}

.note-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-user {
    background-color: rgba(13, 13, 13, 0.5);
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #c9a868;
}

.user-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#current-username {
    color: #c9a868;
    font-weight: 600;
    font-size: 1.1rem;
}

.change-btn {
    background: none;
    border: 1px solid rgba(42, 77, 62, 0.5);
    color: #8a9ba3;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.change-btn:hover {
    border-color: #c9a868;
    color: #d4c9b8;
}

.form-group label {
    color: #c9a868;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

#note-content {
    width: 100%;
    padding: 12px;
    background-color: rgba(13, 13, 13, 0.7);
    border: 1px solid #2a4d3e;
    color: #d4c9b8;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
    resize: vertical;
}

.char-counter {
    text-align: right;
    color: #8a9ba3;
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.submit-btn, .clear-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.submit-btn {
    background-color: #2a4d3e;
    color: #d4c9b8;
}

.submit-btn:hover {
    background-color: #3a6d5a;
}

.clear-btn {
    background-color: rgba(66, 87, 104, 0.7);
    color: #d4c9b8;
    border: 1px solid rgba(201, 168, 104, 0.3);
}

.clear-btn:hover {
    background-color: rgba(86, 107, 124, 0.9);
}

/* Notes display styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.notes-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-btn {
    padding: 8px 15px;
    background-color: rgba(42, 77, 62, 0.7);
    color: #d4c9b8;
    border: 1px solid rgba(201, 168, 104, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Crimson Text', serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background-color: rgba(66, 87, 104, 0.8);
    border-color: #c9a868;
}

.control-btn.warning {
    background-color: rgba(115, 42, 42, 0.7);
}

.control-btn.warning:hover {
    background-color: rgba(145, 52, 52, 0.8);
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
}

.note {
    background-color: rgba(18, 21, 26, 0.7);
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #2a4d3e;
    transition: all 0.3s;
}

.note:hover {
    border-left-color: #c9a868;
    transform: translateX(5px);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(42, 77, 62, 0.5);
}

.note-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-name {
    color: #c9a868;
    font-weight: 600;
}

.note-time {
    color: #8a9ba3;
    font-size: 0.9rem;
    font-style: italic;
}

.note-content {
    line-height: 1.6;
    color: #d4c9b8;
    margin-bottom: 15px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8a9ba3;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #2a4d3e;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notes-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .username-input {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}