@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*{box-sizing:border-box;margin:0;padding:0;border-color:hsl(214,32%,91%)}

html,body{font-family:'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;background-color:hsl(210,40%,98%);color:hsl(222,47%,11%);line-height:1.5}

.min-h-screen{min-height:100vh}
.flex{display:flex}
.flex-col{flex-direction:column}
.flex-1{flex:1 1 0%}
.items-center{align-items:center}
.justify-between{justify-content:space-between}
.gap-1{gap:.25rem}
.gap-2{gap:.5rem}
.gap-3{gap:.75rem}
.gap-4{gap:1rem}
.gap-6{gap:1.5rem}
.flex-wrap{flex-wrap:wrap}
.flex-nowrap{flex-wrap:nowrap}

.mx-auto{margin-left:auto;margin-right:auto}
.mx-2{margin-left:.5rem;margin-right:.5rem}
.ml-0{margin-left:0}
.mt-1{margin-top:.25rem}
.mt-2{margin-top:.5rem}
.mb-1{margin-bottom:.25rem}
.mb-6{margin-bottom:1.5rem}
.mb-8{margin-bottom:2rem}
.p-4{padding:1rem}
.p-6{padding:1.5rem}
.p-10{padding:2.5rem}
.px-2{padding-left:.5rem;padding-right:.5rem}
.px-3{padding-left:.75rem;padding-right:.75rem}
.px-4{padding-left:1rem;padding-right:1rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-1{padding-top:.25rem;padding-bottom:.25rem}
.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}
.py-4{padding-top:1rem;padding-bottom:1rem}
.py-12{padding-top:3rem;padding-bottom:3rem}
.pl-4{padding-left:1rem}
.pl-10{padding-left:2.5rem}
.pr-4{padding-right:1rem}
.pr-10{padding-right:2.5rem}

.text-xs{font-size:.75rem;line-height:1rem}
.text-sm{font-size:.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.tracking-tight{letter-spacing:-.025em}
.text-left{text-align:left}
.text-right{text-align:right}
.text-center{text-align:center}

.text-white{color:#fff}
.text-primary{color:hsl(210,100%,50%)}
.text-foreground{color:hsl(222,47%,11%)}
.text-gray-400{color:#9ca3af}
.text-gray-500{color:#6b7280}
.text-gray-600{color:#4b5563}
.text-gray-700{color:#374151}
.text-blue-700{color:#1d4ed8}
.text-green-700{color:#15803d}
.text-red-600{color:#dc2626}
.text-muted-foreground{color:hsl(215,16%,47%)}

.bg-primary{background-color:hsl(210,100%,50%)}
.bg-primary\/10{background-color:hsla(210,100%,50%,.1)}
.bg-primary\/5{background-color:hsla(210,100%,50%,.05)}
.bg-background{background-color:hsl(210,40%,98%)}
.bg-white{background-color:#fff}
.bg-gray-50{background-color:#f9fafb}
.bg-gray-50\/50{background-color:rgba(249,250,251,.5)}
.bg-gray-100{background-color:#f3f4f6}
.bg-gray-200{background-color:#e5e7eb}
.bg-blue-50{background-color:#eff6ff}
.bg-green-50{background-color:#f0fdf4}
.bg-red-50{background-color:#fef2f2}

.border{border-width:1px}
.border-0{border-width:0}
.border-t{border-top-width:1px}
.border-b{border-bottom-width:1px}
.border-r{border-right-width:1px}
.border-gray-100{border-color:#f3f4f6}
.border-gray-200{border-color:#e5e7eb}
.border-border{border-color:hsl(214,32%,91%)}
.border-primary\/30{border-color:hsla(210,100%,50%,.3)}

.fixed{position:fixed}
.absolute{position:absolute}
.relative{position:relative}
.z-30{z-index:30}
.z-40{z-index:40}
.z-50{z-index:50}
.h-8{height:2rem}
.h-9{height:2.25rem}
.h-10{height:2.5rem}
.h-16{height:4rem}
.h-screen{height:100vh}
.w-8{width:2rem}
.w-full{width:100%}
.w-64{width:16rem}
.w-72{width:18rem}

.rounded{border-radius:.25rem}
.rounded-md{border-radius:.375rem}
.rounded-lg{border-radius:.5rem}
.rounded-xl{border-radius:.75rem}
.rounded-full{border-radius:9999px}

.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}
.shadow-md{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)}

.grid{display:grid}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}

.glass{background-color:rgba(255,255,255,.8);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.3);box-shadow:0 8px 32px rgba(0,0,0,.06)}
.divide-y>*+*{border-top-width:1px}
.divide-gray-100>*+*{border-color:#f3f4f6}
.overflow-x-auto{overflow-x:auto}
.overflow-hidden{overflow:hidden}

.inset-y-0{top:0;bottom:0}
.top-0{top:0}
.top-1\/2{top:50%}
.bottom-0{bottom:0}
.left-0{left:0}
.left-3{left:.75rem}
.right-0{right:0}
.right-3{right:.75rem}

.transform{transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))}
.-translate-y-1\/2{transform:translateY(-50%)}

.appearance-none{appearance:none}
.pointer-events-none{pointer-events:none}
.cursor-not-allowed{cursor:not-allowed}
.disabled\:opacity-50:disabled{opacity:.5}

.block{display:block}
.inline-flex{display:inline-flex}

.transition-colors{transition-property:color,background-color,border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}
.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}
.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}
.duration-300{transition-duration:300ms}

.animate-slide-in{animation:slide-in .3s ease-out}
@keyframes slide-in{from{transform:translateY(5px);opacity:0}to{transform:translateY(0);opacity:1}}

.max-w-screen-2xl{max-width:1536px}

.menu-toggle{display:none}
@media (min-width:640px){.sm\:flex-row{flex-direction:row}.sm\:justify-between{justify-content:space-between}.sm\:items-center{align-items:center}.sm\:w-72{width:18rem}.sm\:flex-nowrap{flex-wrap:nowrap}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){.lg\:ml-64{margin-left:16rem}.lg\:p-10{padding:2.5rem}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1023px){.menu-toggle{display:flex;position:fixed;top:1rem;left:1rem;z-index:50;width:2.5rem;height:2.5rem;background-color:#fff;border-radius:.375rem;box-shadow:0 1px 3px rgba(0,0,0,.1);align-items:center;justify-content:center}aside{transform:translateX(-100%);transition:transform .3s ease-in-out}aside.show{transform:translateX(0)}}

input,select,button{font-family:inherit}
input,select{border:1px solid #e5e7eb;border-radius:.5rem}
button{cursor:pointer}

.alert{padding:12px 14px;border-radius:12px;border:1px solid rgba(0,0,0,.06)}
.alert-success{background:#f0fdf4;color:#166534;border-color:#bbf7d0}
.alert-error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.alert-info{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}

.card{background:rgba(255,255,255,.8);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.3);box-shadow:0 8px 32px rgba(0,0,0,.06);border-radius:16px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:14px 16px;border-bottom:1px solid #f3f4f6;text-align:left;font-size:.875rem}
.table th{color:#6b7280;font-weight:500}
.table tr:hover td{background:rgba(249,250,251,.5)}

/* Sidebar menu enhancements */
.sidebar-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:#374151;text-decoration:none;font-size:.9rem;font-weight:500;transition:background-color .15s ease,color .15s ease}
.sidebar-link:hover{background:rgba(243,244,246,.9)}
.sidebar-link.is-active{background:hsla(210,100%,50%,.10);color:hsl(210,100%,40%)}
.sidebar-icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;color:rgba(55,65,81,.75)}
.sidebar-link.is-active .sidebar-icon{color:hsl(210,100%,40%)}

.sidebar-toggle{width:100%;background:transparent;border:0;text-align:left;cursor:pointer}
.sidebar-toggle .sidebar-caret{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;color:rgba(55,65,81,.55);transition:transform .15s ease}
.sidebar-toggle.is-open .sidebar-caret{transform:rotate(180deg)}

.sidebar-submenu{margin-left:34px;margin-top:6px;margin-bottom:8px;display:flex;flex-direction:column;gap:4px;padding-left:10px;border-left:1px solid rgba(229,231,235,.9)}
.sidebar-sublink{display:flex;align-items:center;padding:8px 10px;border-radius:10px;color:#4b5563;text-decoration:none;font-size:.85rem;font-weight:500;transition:background-color .15s ease,color .15s ease}
.sidebar-sublink:hover{background:rgba(243,244,246,.9);color:#374151}
.sidebar-sublink.is-active{background:hsla(210,100%,50%,.10);color:hsl(210,100%,40%)}

.sidebar-logout{width:36px;height:36px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:#6b7280;text-decoration:none;transition:background-color .15s ease,color .15s ease}
.sidebar-logout:hover{background:rgba(243,244,246,.9);color:#374151}

.hidden{display:none!important}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 14px;border-radius:12px;border:1px solid transparent;font-size:.9rem;font-weight:600;text-decoration:none;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.btn-sm{height:34px;padding:0 12px;border-radius:10px;font-size:.85rem;font-weight:600}
.btn-primary{background:hsl(210,100%,50%);color:#fff}
.btn-primary:hover{background:hsl(210,100%,45%)}
.btn-outline{background:#fff;border-color:#e5e7eb;color:#374151}
.btn-outline:hover{background:rgba(243,244,246,.9)}
.btn-danger{background:#fee2e2;border-color:#fecaca;color:#991b1b}
.btn-danger:hover{background:#fecaca}

/* Badges */
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:9999px;font-size:.75rem;font-weight:700;line-height:1;border:1px solid transparent}
.badge-success{background:#f0fdf4;color:#166534;border-color:#bbf7d0}
.badge-danger{background:#fef2f2;color:#991b1b;border-color:#fecaca}

/* Modal */
.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);backdrop-filter:blur(2px);z-index:60;display:flex;align-items:flex-start;justify-content:center;padding:32px}
.modal-overlay{overflow:auto}
.modal{width:100%;max-width:720px;margin-top:20px;display:flex;flex-direction:column;max-height:calc(100vh - 64px)}
.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px;border-bottom:1px solid rgba(243,244,246,.9);position:sticky;top:0;background:rgba(255,255,255,.95);backdrop-filter:blur(6px);z-index:1}
.modal-body{padding:18px 18px;overflow:auto;flex:1}
.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid rgba(243,244,246,.9);position:sticky;bottom:0;background:rgba(255,255,255,.95);backdrop-filter:blur(6px)}
.modal-form{display:flex;flex-direction:column;flex:1;min-height:0}
.icon-btn{width:36px;height:36px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;color:#374151;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .15s ease}
.icon-btn:hover{background:rgba(243,244,246,.9)}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #f3f4f6}
.list-toolbar.is-bottom{border-bottom:0;border-top:1px solid #f3f4f6;justify-content:flex-end}
.list-toolbar-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.list-toolbar-form input,.list-toolbar-form select{height:38px;padding:0 12px;font-size:.85rem;background:#fff}
.list-reset{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #e5e7eb;border-radius:.5rem;background:#fff;color:#4b5563}
.list-reset:hover{color:#111827;border-color:#9ca3af;background:#f9fafb}
.list-reset.is-idle{opacity:.45}
.badge-warning{background:#fffbeb;color:#92400e;border-color:#fde68a}
.badge-muted{background:#f3f4f6;color:#4b5563;border-color:#e5e7eb}
.sidebar-count{margin-left:auto;background:#f59e0b;color:#fff;border-radius:999px;font-size:.7rem;font-weight:600;padding:1px 7px;line-height:1.4}
.list-search{min-width:240px}
.list-pager-wrap{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:auto}
.list-info{font-size:.8rem;color:#6b7280}
.pager{display:inline-flex;gap:4px;align-items:center;flex-wrap:wrap}
.pager a,.pager span{min-width:34px;height:34px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e5e7eb;border-radius:10px;font-size:.85rem;color:#374151;text-decoration:none;background:#fff}
.pager a:hover{background:rgba(243,244,246,.9)}
.pager .is-current{background:hsl(210,100%,50%);border-color:transparent;color:#fff;font-weight:600}
.pager .is-disabled{opacity:.45}
.pager .gap{border:0;background:transparent;min-width:20px;padding:0}
