:root{--primary:#ec4899;--primary-hover:#db2777;--bg-color:#f8fafc;--sidebar-bg:#ffffffe6;--text-main:#1f2937;--text-muted:#6b7280;--border-color:#e2e8f0;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;--glass-border:#ffffff4d}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-color);color:var(--text-main);-webkit-font-smoothing:antialiased;background-image:radial-gradient(at 0 0,#100f1500 0,#0000 50%),radial-gradient(at 50% 0,#2f3e6a08 0,#0000 50%),radial-gradient(at 100% 0,#72274108 0,#0000 50%);min-height:100vh;font-family:Prompt,sans-serif}.app-container{height:100vh;display:flex;overflow:hidden}.sidebar{background:var(--sidebar-bg);-webkit-backdrop-filter:blur(12px);border-right:1px solid var(--border-color);width:280px;box-shadow:var(--shadow-md);z-index:10;flex-direction:column;padding:24px 16px;display:flex}.sidebar-title{color:var(--primary);text-align:center;margin-bottom:32px;padding:0 8px;font-size:1.25rem;font-weight:600;line-height:1.4}.month-list{flex-direction:column;flex:1;gap:8px;padding-right:4px;display:flex;overflow-y:auto}.month-list::-webkit-scrollbar{width:4px}.month-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.month-btn{text-align:left;color:var(--text-main);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:12px;justify-content:space-between;align-items:center;padding:12px 16px;font-family:inherit;font-size:.95rem;transition:all .2s;display:flex}.month-btn:hover{color:var(--primary);background:#4f46e50d;transform:translate(4px)}.month-btn.active{background:var(--primary);color:#fff;box-shadow:var(--shadow-md)}.main-content{flex-direction:column;flex:1;padding:32px;display:flex;position:relative;overflow-y:auto}.header{box-shadow:var(--shadow-sm);background:#fff;border-radius:20px;justify-content:space-between;align-items:center;margin-bottom:32px;padding:24px 32px;display:flex}.header h1{color:var(--text-main);font-size:2rem;font-weight:600}.add-btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:999px;align-items:center;gap:8px;padding:12px 24px;font-family:inherit;font-size:1rem;font-weight:500;transition:all .2s;display:flex;box-shadow:0 4px 14px #4f46e563}.add-btn:hover{background:var(--primary-hover);transform:translateY(-2px);box-shadow:0 6px 20px #4f46e566}.search-container{align-items:center;display:flex;position:relative}.search-input{background-color:#fffc;border:1px solid #2b4c7e33;border-radius:20px;width:250px;padding:10px 16px 10px 36px;font-family:inherit;font-size:.95rem;transition:all .2s}.search-input:focus{border-color:var(--primary);background-color:#fff;outline:none;width:300px;box-shadow:0 0 0 3px #2b4c7e1a}.search-icon{color:var(--text-muted);pointer-events:none;position:absolute;left:12px}.search-results{z-index:1000;background:#fff;border:1px solid #0000000d;border-radius:12px;max-height:400px;margin-top:8px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 10px 25px #0000001a}.search-result-item{cursor:pointer;text-align:left;border-bottom:1px solid #0000000d;padding:12px 16px;transition:background-color .2s}.search-result-item:last-child{border-bottom:none}.search-result-item:hover{background-color:#2b4c7e0d}.search-result-title{color:var(--primary);margin-bottom:4px;font-weight:600}.search-result-date{color:var(--text-muted);font-size:.85rem}.modal-overlay{-webkit-backdrop-filter:blur(6px);z-index:50;opacity:0;background:#0f172a80;justify-content:center;align-items:center;animation:.3s ease-out forwards fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{width:100%;max-width:550px;box-shadow:var(--shadow-lg);border:1px solid var(--glass-border);background:#fff;border-radius:24px;max-height:90vh;padding:32px;animation:.3s cubic-bezier(.16,1,.3,1) forwards scaleUp;overflow-y:auto;transform:scale(.95)}@keyframes scaleUp{0%{opacity:0;transform:scale(.95)translateY(15px)}to{opacity:1;transform:scale(1)translateY(0)}}.modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;display:flex}.modal-header h2{color:var(--text-main);font-size:1.5rem;font-weight:600}.close-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;font-size:1.75rem;line-height:1;transition:color .2s}.close-btn:hover{color:var(--text-main)}.form-group{margin-bottom:24px}.form-group label{color:var(--text-main);margin-bottom:8px;font-size:.95rem;font-weight:500;display:block}.form-control{border:1px solid var(--border-color);background:#f8fafc;border-radius:12px;width:100%;padding:14px 16px;font-family:inherit;font-size:1rem;transition:all .2s}.form-control:focus{border-color:var(--primary);background:#fff;outline:none;box-shadow:0 0 0 4px #4f46e51a}.file-input-wrapper{align-items:center;gap:12px;margin-top:4px;display:flex;position:relative}.file-input-wrapper input[type=file]{display:none}.file-btn{border:1px dashed var(--primary);cursor:pointer;color:var(--primary);background:#fff;border-radius:12px;flex:1;justify-content:center;align-items:center;gap:8px;padding:12px 20px;font-family:inherit;font-size:.95rem;font-weight:500;transition:all .2s;display:inline-flex}.file-btn:hover{background:#4f46e50d}.open-file-btn{color:#fff;cursor:pointer;background:#10b981;border:none;border-radius:12px;align-items:center;gap:6px;padding:12px 20px;font-family:inherit;font-size:.95rem;font-weight:500;transition:all .2s;display:flex}.open-file-btn:hover{background:#059669}.open-file-btn:disabled{cursor:not-allowed;opacity:.7;background:#9ca3af}.modal-actions{justify-content:flex-end;gap:12px;margin-top:40px;display:flex}.btn-cancel{border:1px solid var(--border-color);cursor:pointer;color:var(--text-main);background:0 0;border-radius:12px;padding:12px 24px;font-family:inherit;font-size:1rem;font-weight:500;transition:all .2s}.btn-cancel:hover{background:#f1f5f9}.btn-save{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:12px;padding:12px 28px;font-family:inherit;font-size:1rem;font-weight:500;transition:all .2s;box-shadow:0 4px 14px #4f46e54d}.btn-save:hover{background:var(--primary-hover);transform:translateY(-2px)}.calendar-container{box-shadow:var(--shadow-sm);background:#fff;border-radius:20px;flex-direction:column;flex:1;padding:24px;display:flex;overflow:auto}.calendar-grid{flex:1;grid-template-columns:repeat(7,minmax(60px,1fr));gap:12px;display:grid}.calendar-day-header{text-align:center;color:var(--text-muted);border-bottom:2px solid var(--border-color);margin-bottom:8px;padding-bottom:12px;font-weight:600}.calendar-cell{background:var(--bg-color);border:1px solid #0000;border-radius:12px;flex-direction:column;min-width:0;min-height:120px;padding:12px;transition:all .2s;display:flex}.calendar-cell.active-cell{border:1px solid var(--border-color);cursor:pointer;background:#fff}.calendar-cell.is-today{background-color:#f0fdf4;border:2px solid #10b981}.calendar-cell.active-cell:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:0 4px 12px #ec48991a}.calendar-cell.empty-cell{background:0 0}.day-number{color:var(--text-main);margin-bottom:8px;font-size:1.1rem;font-weight:600}.holiday-text{font-size:.65rem}.wan-phra-icon{font-size:1rem}.event-indicators{flex-direction:column;gap:4px;max-height:80px;margin-top:4px;display:flex;overflow-y:auto}.event-indicators::-webkit-scrollbar{width:2px}.event-indicators::-webkit-scrollbar-thumb{background:var(--primary)}.event-dot{background:var(--primary);color:#fff;white-space:nowrap;text-overflow:ellipsis;box-shadow:var(--shadow-sm);border-radius:4px;max-width:100%;padding:4px 8px;font-size:.8rem;overflow:hidden}.appointments-list{flex-direction:column;gap:16px;max-height:60vh;padding-right:8px;display:flex;overflow-y:auto}.appointments-list::-webkit-scrollbar{width:4px}.appointments-list::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}.appointment-card{background:var(--bg-color);border:1px solid var(--border-color);text-align:left;border-radius:12px;padding:16px}.appointment-card h3{color:var(--primary);margin-top:0;margin-bottom:12px;font-size:1.1rem}.appointment-card p{color:var(--text-main);margin:6px 0;font-size:.95rem}.appointment-card p strong{color:var(--text-muted);font-weight:600}.header-title{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.year-selector{color:var(--primary);border:2px solid var(--primary);cursor:pointer;background:#fff;border-radius:12px;outline:none;padding:8px 16px;font-family:inherit;font-size:1.1rem;font-weight:500;transition:all .2s}.year-selector:focus,.year-selector:hover{background:#ec48990d}@media (width<=768px){.app-container{flex-direction:column}.sidebar{border-right:none;border-bottom:1px solid var(--border-color);width:100%;height:auto;padding:8px 12px}.sidebar-title{text-align:left;margin-bottom:8px;font-size:1.1rem;display:none}.month-list{flex-direction:row;gap:4px;padding-bottom:4px;overflow:auto hidden}.month-btn{white-space:nowrap;margin-right:4px;padding:4px 8px;font-size:.75rem}.main-content{padding:2px}.header{border-radius:6px;flex-flow:wrap;align-items:center;gap:4px;margin-bottom:4px;padding:6px 4px}.header-title{flex:1;width:auto}.header h1{margin-right:4px;font-size:1rem}.year-selector{padding:2px 4px;font-size:.8rem}.add-btn{width:auto;padding:4px 8px;font-size:.75rem}.modal-content{width:100%;max-height:98vh;margin:4px;padding:12px}.modal-actions{flex-direction:column}.btn-cancel,.btn-save{width:100%;padding:6px;font-size:.8rem}.file-input-wrapper{flex-direction:column;align-items:stretch}.open-file-btn{justify-content:center;padding:6px;font-size:.8rem}.calendar-grid{grid-template-columns:repeat(7,1fr);gap:1px}.calendar-day-header{margin-bottom:2px;padding-bottom:2px;font-size:.65rem}.calendar-cell{border-radius:2px;min-width:0;min-height:50px;padding:1px}.day-number{margin-bottom:1px;font-size:.7rem}.holiday-text{margin-bottom:1px;font-size:.5rem}.wan-phra-icon{font-size:.7rem}.event-dot{border-radius:2px;max-width:100%;padding:1px 2px;font-size:.5rem}}:root{--react-pdf-annotation-layer:1;--annotation-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color:Highlight;--input-focus-outline:1px solid Canvas;--input-unfocused-border-color:transparent;--input-disabled-border-color:transparent;--input-hover-border-color:black;--link-outline:none}@media screen and (forced-colors:active){:root{--input-focus-border-color:CanvasText;--input-unfocused-border-color:ActiveText;--input-disabled-border-color:GrayText;--input-hover-border-color:Highlight;--link-outline:1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selecteditem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert();backdrop-filter:invert()}}.annotationLayer{pointer-events:none;transform-origin:0 0;z-index:3;position:absolute;top:0;left:0}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg)translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg)translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg)translateY(-100%)}.annotationLayer canvas{width:100%;height:100%;position:absolute}.annotationLayer section{text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0;margin:0;position:absolute}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{width:100%;height:100%;font-size:1em;position:absolute;top:0;left:0}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{cursor:pointer;width:100%;height:100%;position:absolute;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--total-scale-factor)) sans-serif;vertical-align:top;width:100%;height:100%;margin:0}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{border:2px solid var(--input-disabled-border-color);cursor:not-allowed;background:0 0}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline);background:0 0;border-radius:2px}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-color:#0000;background-image:none}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline);border-radius:2px}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{content:"";background-color:canvastext;display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{width:1px;height:80%;left:45%}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;width:50%;height:50%;top:20%;left:30%}.annotationLayer .textWidgetAnnotation input.comb{padding-left:2px;padding-right:0;font-family:monospace}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{appearance:none}.annotationLayer .popupTriggerArea{width:100%;height:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none;position:absolute}.annotationLayer .popup{max-width:calc(180px * var(--total-scale-factor));box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) #888;border-radius:calc(2px * var(--total-scale-factor));padding:calc(6px * var(--total-scale-factor));margin-left:calc(5px * var(--total-scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto;background-color:#ff9;position:absolute}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{margin-left:calc(5px * var(--total-scale-factor));display:inline-block}.annotationLayer .popupContent{margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor));border-top:1px solid #333}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{width:100%;height:100%;position:absolute;top:0;left:0}.annotationLayer .annotationTextContent{opacity:0;color:#0000;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%;position:absolute}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer:1;--highlight-bg-color:#b400aa;--highlight-selected-bg-color:#006400}@media screen and (forced-colors:active){:root{--highlight-bg-color:Highlight;--highlight-selected-bg-color:ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg)translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg)translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg)translate(-100%)}.textLayer{text-align:initial;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2;line-height:1;position:absolute;inset:0;overflow:hidden}.textLayer :is(span,br){color:#0000;white-space:pre;cursor:text;transform-origin:0 0;margin:0;position:absolute}.textLayer span.markedContent{height:0;top:0}.textLayer .highlight{background-color:var(--highlight-bg-color);border-radius:4px;margin:-1px;padding:1px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:0 0}.textLayer .endOfContent{z-index:-1;cursor:default;-webkit-user-select:none;user-select:none;display:block;position:absolute;inset:100% 0 0}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{width:0;height:0;display:none;position:absolute;top:0;left:0}
