/* Custom Zen Styles for Specchio Logico-Matematico */

:root {
    --zen-primary: #cbd5e1;
    --zen-spring: #e2e8f0;
}

body {
    background: radial-gradient(circle at top left, #f8fafc, #f1f5f9);
    background-attachment: fixed;
}

#graphContainer {
    background: white;
    border-radius: 1.5rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.math-input {
    caret-color: #f472b6;
    letter-spacing: 0.05em;
}

.math-input::placeholder {
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: #94a3b8;
    font-weight: 300;
}

/* Animations */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(0.99); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s infinite ease-in-out;
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* Graph custom styling */
.function-plot .axis line, 
.function-plot .axis path {
    stroke: #e2e8f0;
}

.function-plot .grid line {
    stroke: #f1f5f9;
}

.function-plot .axis text {
    fill: #94a3b8;
    font-size: 10px;
    font-family: 'Outfit', sans-serif;
}

/* Success Diary Items */
#diaryList div {
    transition: all 0.3s ease;
}

#diaryList div:hover {
    transform: translateX(5px);
    background-color: rgba(99, 102, 241, 0.4);
}

/* Scrollbar polish */
#diaryList::-webkit-scrollbar {
    width: 4px;
}
#diaryList::-webkit-scrollbar-thumb {
    background: #4338ca;
    border-radius: 10px;
}

/* Zen Elements */
.bg-pastel-blue { background-color: #E0F2FE; }
.bg-pastel-pink { background-color: #FCE7F3; }
.bg-pastel-green { background-color: #DCFCE7; }
.bg-pastel-yellow { background-color: #FEF9C3; }

.text-soft { color: #64748B; }

/* Responsive adjustments */
@media (max-width: 640px) {
    header h1 {
        font-size: 1.75rem;
    }
}
