*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f9fafb}.app-container{min-height:100vh;background-color:#f9fafb}.mobile-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid #e5e7eb}.mobile-header h1{font-size:1.25rem;font-weight:600;color:#4f46e5}.mobile-menu-btn{padding:8px;border-radius:8px;border:none;background:none;cursor:pointer;font-size:1.5rem}.mobile-menu-btn:hover{background:#f3f4f6}.sidebar{position:fixed;top:0;left:0;bottom:0;width:256px;background:#fff;border-right:1px solid #e5e7eb;z-index:50;transform:translate(-100%);transition:transform .3s ease-in-out;display:flex;flex-direction:column}.sidebar.open{transform:translate(0)}.sidebar-header{padding:24px}.sidebar-header h1{font-size:1.5rem;font-weight:700;color:#4f46e5}.sidebar-header p{font-size:.875rem;color:#6b7280;margin-top:4px}.sidebar-nav{margin-top:24px;padding:0 16px;flex:1}.sidebar-nav button{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:8px;margin-bottom:4px;border:none;background:none;cursor:pointer;font-size:1rem;color:#4b5563;transition:all .2s}.sidebar-nav button:hover{background:#f9fafb}.sidebar-nav button.active{background:#eef2ff;color:#4f46e5;font-weight:500}.sidebar-nav button .icon{font-size:1.25rem}.sidebar-footer{padding:24px;border-top:1px solid #e5e7eb}.sidebar-footer .user-info{display:flex;align-items:center;gap:12px}.sidebar-footer .avatar{width:40px;height:40px;border-radius:50%;background:#eef2ff;display:flex;align-items:center;justify-content:center;font-weight:600;color:#4f46e5}.sidebar-footer .user-name{font-size:.875rem;font-weight:500;color:#374151}.sidebar-footer .user-version{font-size:.75rem;color:#6b7280}.main-content{flex:1;overflow-y:auto;padding:24px}.overlay{position:fixed;inset:0;background:#0003;z-index:40;display:none}.overlay.open{display:block}@media (min-width: 1024px){.mobile-header{display:none!important}.sidebar{position:static;transform:translate(0)!important}.overlay{display:none!important}}.page-header{margin-bottom:32px}.page-header h2{font-size:1.5rem;font-weight:700;color:#1f2937}.page-header p{color:#6b7280}.stats-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-bottom:32px}@media (min-width: 768px){.stats-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1024px){.stats-grid{grid-template-columns:repeat(4,1fr)}}.stat-card{background:#fff;border-radius:12px;padding:24px;border:1px solid #f3f4f6;box-shadow:0 1px 2px #0000000d;transition:box-shadow .2s}.stat-card:hover{box-shadow:0 4px 6px #00000012}.stat-card .stat-content{display:flex;align-items:center;justify-content:space-between}.stat-card .stat-label{font-size:.875rem;font-weight:500;color:#6b7280}.stat-card .stat-value{font-size:1.5rem;font-weight:700;color:#1f2937;margin-top:4px}.stat-card .stat-subtitle{font-size:.75rem;color:#9ca3af;margin-top:4px}.stat-card .stat-icon{padding:12px;border-radius:8px}.stat-card .stat-icon.blue{background:#eff6ff;color:#3b82f6}.stat-card .stat-icon.green{background:#f0fdf4;color:#22c55e}.stat-card .stat-icon.purple{background:#f5f3ff;color:#8b5cf6}.stat-card .stat-icon.orange{background:#fff7ed;color:#f97316}.card{background:#fff;border-radius:12px;padding:24px;border:1px solid #f3f4f6;box-shadow:0 1px 2px #0000000d}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.card-header h3{font-weight:600;color:#1f2937}.mood-item{margin-bottom:16px}.mood-item:last-child{margin-bottom:0}.mood-item .mood-row{display:flex;align-items:center;justify-content:space-between;font-size:.875rem}.mood-item .mood-label{color:#374151}.mood-item .mood-count{font-weight:500;color:#1f2937}.mood-item .mood-bar{width:100%;height:12px;background:#f3f4f6;border-radius:9999px;margin-top:4px;overflow:hidden}.mood-item .mood-bar .fill{height:100%;border-radius:9999px;transition:all .5s}.mood-item .mood-bar .fill.great{background:#22c55e}.mood-item .mood-bar .fill.good{background:#3b82f6}.mood-item .mood-bar .fill.okay{background:#eab308}.mood-item .mood-bar .fill.not-great{background:#f97316}.mood-item .mood-bar .fill.struggling{background:#ef4444}.mood-item .mood-bar .fill.overwhelmed{background:#8b5cf6}.table-container{overflow-x:auto}table{width:100%}table thead{background:#f9fafb;border-bottom:1px solid #f3f4f6}table th{text-align:left;padding:12px 16px;font-size:.875rem;font-weight:500;color:#6b7280}table td{padding:12px 16px;font-size:.875rem;border-bottom:1px solid #f9fafb}table tbody tr:hover{background:#f9fafb}.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:9999px;font-size:.75rem;font-weight:500}.badge.active{background:#f0fdf4;color:#166534}.badge.inactive{background:#fef2f2;color:#991b1b}.badge.closed{background:#f3f4f6;color:#374151}.btn-primary{padding:8px 16px;background:#4f46e5;color:#fff;border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background .2s}.btn-primary:hover{background:#4338ca}.btn-secondary{padding:8px 16px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#374151;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .2s}.btn-secondary:hover{background:#f9fafb}.btn-danger{padding:4px 8px;background:none;border:none;color:#6b7280;cursor:pointer;border-radius:4px;transition:all .2s}.btn-danger:hover{color:#ef4444;background:#fef2f2}.search-container{position:relative;flex:1}.search-container input{width:100%;padding:8px 12px 8px 36px;border:1px solid #d1d5db;border-radius:8px;outline:none;font-size:.875rem}.search-container input:focus{border-color:#4f46e5;box-shadow:0 0 0 2px #4f46e533}.search-container .search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9ca3af}.modal-overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:#00000080}.modal{background:#fff;border-radius:12px;max-width:448px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid #f3f4f6}.modal-header h3{font-size:1.125rem;font-weight:600;color:#1f2937}.modal-close{padding:4px;border:none;background:none;cursor:pointer;border-radius:8px}.modal-close:hover{background:#f3f4f6}.modal-body{padding:24px}.modal-footer{display:flex;gap:12px;padding-top:16px;border-top:1px solid #f3f4f6}.modal-footer button{flex:1;padding:8px 16px;border-radius:8px;border:none;cursor:pointer;font-size:.875rem;transition:all .2s}.modal-footer .btn-cancel{background:#fff;border:1px solid #d1d5db;color:#374151}.modal-footer .btn-cancel:hover{background:#f9fafb}.modal-footer .btn-submit{background:#4f46e5;color:#fff}.modal-footer .btn-submit:hover{background:#4338ca}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:4px}.form-group input,.form-group textarea,.form-group select{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;outline:none;font-size:.875rem}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{border-color:#4f46e5;box-shadow:0 0 0 2px #4f46e533}.form-group textarea{resize:vertical;min-height:80px}.periods-grid{display:grid;grid-template-columns:1fr;gap:24px}@media (min-width: 1024px){.periods-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1280px){.periods-grid{grid-template-columns:repeat(3,1fr)}}.period-card{background:#fff;border-radius:12px;padding:24px;border:1px solid #f3f4f6;box-shadow:0 1px 2px #0000000d;transition:box-shadow .2s}.period-card:hover{box-shadow:0 4px 6px #00000012}.period-card .period-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.period-card .period-title{font-weight:600;color:#1f2937}.period-card .period-message{font-size:.875rem;color:#6b7280;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.period-card .period-meta{display:flex;align-items:center;gap:8px;font-size:.875rem;color:#4b5563;margin-top:8px}.period-card .period-meta .meta-icon{color:#9ca3af}.period-card .response-bar{width:100%;height:8px;background:#f3f4f6;border-radius:9999px;margin-top:12px;overflow:hidden}.period-card .response-bar .fill{height:100%;background:#4f46e5;border-radius:9999px;transition:width .3s}.period-card .period-actions{display:flex;gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid #f3f4f6}.period-card .period-actions button{flex:1;padding:6px 12px;border-radius:8px;border:none;cursor:pointer;font-size:.875rem;transition:all .2s}.period-card .period-actions .btn-view{background:none;color:#4f46e5}.period-card .period-actions .btn-view:hover{background:#eef2ff}.period-card .period-actions .btn-close{background:#ef4444;color:#fff}.period-card .period-actions .btn-close:hover{background:#dc2626}.period-card .period-actions .btn-edit{background:none;color:#6b7280}.period-card .period-actions .btn-edit:hover{background:#f3f4f6}.period-card .period-actions .btn-delete{background:none;color:#6b7280}.period-card .period-actions .btn-delete:hover{background:#fef2f2;color:#ef4444}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.mt-1{margin-top:4px}.mb-1{margin-bottom:4px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mb-8{margin-bottom:32px}.p-6{padding:24px}.pt-4{padding-top:16px}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.text-gray-500{color:#6b7280}.text-gray-600{color:#4b5563}.text-gray-700{color:#374151}.text-gray-800{color:#1f2937}.text-indigo-600{color:#4f46e5}.text-green-600{color:#16a34a}.text-red-600{color:#dc2626}.bg-white{background:#fff}.bg-gray-50{background:#f9fafb}.border{border:1px solid #e5e7eb}.border-b{border-bottom:1px solid #e5e7eb}.rounded-lg{border-radius:8px}.rounded-xl{border-radius:12px}.shadow-sm{box-shadow:0 1px 2px #0000000d}.w-full{width:100%}.h-full{height:100%}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}
