/* PAGE: LaTeX help - formula cards and the "copied" toast. */
/* --- COPY TOAST NOTIFICATION --- */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}
#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* --- SCROLLBAR HIDE --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- CUSTOM FLASHCARD CSS --- */
.f-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
}

/* Dark Mode styles */
.dark .f-card {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.f-card:hover {
    border-color: #818cf8;
    box-shadow: 0 10px 15px -3px rgba(199, 210, 254, 0.5), 0 4px 6px -2px rgba(199, 210, 254, 0.3);
    transform: translateY(-4px);
}

.dark .f-card:hover {
    border-color: #6366f1;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
}

.f-card:active {
    transform: scale(0.98);
}

.card-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 100px;
    overflow-x: auto;
    text-align: center;
}

.code-footer {
    background-color: #f9fafb;
    border-top: 1px solid #f3f4f6;
    padding: 0.75rem 1rem;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    transition: all 0.3s;
    user-select: all;
    word-break: break-all;
}

.dark .code-footer {
    background-color: #0f172a;
    border-top-color: #334155;

    color: #94a3b8;
}

.f-card:hover .code-footer {
    background-color: #eef2ff;
    color: #4f46e5;
    border-top-color: #e0e7ff;
}

.dark .f-card:hover .code-footer {
    background-color: #1e1b4b;
    color: #818cf8;
    border-top-color: #312e81;
}
