/* styles.css */

/* Custom Scrollbar for Textarea */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.3);
    /* slate-400 with opacity */
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(148, 163, 184, 0.5);
}

/* Base structural transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Exceptions for transform/opacity which need specific transitions */
.toast-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Glass Panels */
.glass-panel {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.dark .glass-panel {
    background-color: rgba(30, 41, 59, 0.7);
    /* slate-800 */
}

/* Buttons */
.btn-secondary {
    background-color: #f1f5f9;
    /* slate-100 */
    color: #475569;
    /* slate-600 */
    border: 1px solid #e2e8f0;
    /* slate-200 */
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-secondary:active {
    transform: scale(0.97);
}

html.dark .btn-secondary {
    background-color: #334155;
    /* slate-700 */
    color: #cbd5e1;
    /* slate-300 */
    border-color: #475569;
    /* slate-600 */
}

html.dark .btn-secondary:hover {
    background-color: #475569;
}