/* 티처노트 Custom Styles */

body {
    font-family: 'Noto Sans KR', sans-serif;
}

/* Font classes */
.font-myeongjo { font-family: 'Nanum Myeongjo', serif; }
.font-dodum    { font-family: 'Gowun Dodum', sans-serif; }
.font-melody   { font-family: 'Hi Melody', cursive; }
.font-gaegu    { font-family: 'Gaegu', cursive; }

/* Animations */
@keyframes subtle-bounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.animate-subtle-bounce {
    animation: subtle-bounce 0.2s ease-in-out;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 0.3s ease-out forwards;
}

/* Custom Scrollbar */
.phone-scrollbar::-webkit-scrollbar { width: 4px; }
.phone-scrollbar::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 4px; }

/* Loading overlay */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Document preview area */
#doc-preview {
    min-height: 300px;
}

/* Chart canvas */
#dev-chart {
    display: block;
    max-width: 320px;
    margin: 0 auto;
}

/* Notepad modal */
#notepad-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool card hover */
.tool-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* View transition */
.view { display: none; }
.view.active { display: block; }

/* Document content editable area */
[contenteditable="true"] {
    outline: none;
    cursor: text;
}
[contenteditable="true"]:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
    border-radius: 2px;
}

/* Print styles */
@media print {
    nav, #toolbar, #sidebar, .no-print { display: none !important; }
    #doc-preview { box-shadow: none; border: none; }
}

/* Attachment preview */
.attachment-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Dev chart bar */
.dev-bar {
    transition: width 0.6s ease;
}

/* Tabs */
.tab-btn.active {
    border-bottom: 2px solid #6366f1;
    color: #6366f1;
    font-weight: 600;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Toast notification */
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#toast.show { opacity: 1; }
