/* Custom styles for the live journal with new.css */

/* Enhanced fade-in animation for better UX */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Recording pulse animation */
.pulse-recording {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ff4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1);
    }
}

/* Recording indicator */
.recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff4444;
    font-weight: bold;
}

/* Journal entry styling */
.journal-entry {
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--nc-bg-3);
    border-radius: 4px;
    background-color: var(--nc-bg-2);
    white-space: pre-wrap; /* Preserve newlines */
    line-height: 1.6;
}

/* Controls layout */
.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Archive list styling */
.archive-item {
    padding: 1rem;
    border: 1px solid var(--nc-bg-3);
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: background-color 0.2s;
}

.archive-item:hover {
    background-color: var(--nc-bg-2);
}

.archive-date {
    font-size: 0.9rem;
    color: var(--nc-tx-2);
    margin-bottom: 0.5rem;
}

.archive-preview {
    color: var(--nc-tx-1);
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }
    
    .controls .button {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
