/* Modal Styles */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 80%;
    max-width: 700px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
}

.entry-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.entry-content {
    line-height: 1.8;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.entry-mood {
    font-style: italic;
    color: #777;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Typing indicator */
.typing-indicator {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 18px;
    display: inline-block;
    margin-bottom: 15px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
    animation: typing 1s infinite 0s;
}

.typing-indicator span:nth-of-type(2) {
    animation: typing 1s infinite 0.2s;
}

.typing-indicator span:nth-of-type(3) {
    animation: typing 1s infinite 0.4s;
}

@keyframes typing {
    0% {
        transform: translateY(0px);
    }
    28% {
        transform: translateY(-5px);
    }
    44% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Invalid feedback */
.invalid-feedback {
    color: #dc3545;
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
} 