/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0d1f3c 100%);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Locked State */
.form-locked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* Pulse Animation */
.pulse-green {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

/* Entry Card */
.entry-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.entry-card.expanded .entry-details {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
}

.entry-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Entry Highlight */
.entry-highlight {
    border: 2px solid #a855f7 !important;
    background: rgba(168, 85, 247, 0.1) !important;
}

.dark .entry-highlight {
    background: rgba(168, 85, 247, 0.2) !important;
}

/* Entry Message */
.entry-message {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 1.25rem;
    line-height: 1.7;
    text-align: left;
    letter-spacing: 0.02em;
    padding-left: 1rem;
    border-left: 4px solid #22c55e;
    font-style: italic;
    color: #374151;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    overflow-x: auto;
}

.dark .entry-message {
    color: #e5e7eb;
    border-left-color: #4ade80;
}

/* Website Popover */
#websitePopover {
    position: fixed;
    z-index: 50;
}

/* Badge Popover */
#badgePopover {
    position: fixed;
    z-index: 50;
}

/* Animation for new entries */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry-new {
    animation: slideIn 0.5s ease-out;
}
