 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box
 }

 html {
     overflow-x: hidden
 }

 body {
     font-family: 'Plus Jakarta Sans', sans-serif;
     overflow-x: hidden
 }

 ::-webkit-scrollbar {
     width: 6px
 }

 ::-webkit-scrollbar-track {
     background: transparent
 }

 ::-webkit-scrollbar-thumb {
     background: rgba(148, 163, 184, 0.3);
     border-radius: 3px
 }

 .dark ::-webkit-scrollbar-thumb {
     background: rgba(71, 85, 105, 0.5)
 }

 .sidebar-nav {
     overflow-y: auto;
     overflow-x: hidden;
     scrollbar-width: none;
     -ms-overflow-style: none
 }

 .sidebar-nav::-webkit-scrollbar {
     width: 0;
     display: none
 }

 .card-premium {
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
 }

 .card-premium:hover {
     transform: translateY(-4px);
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1)
 }

 .dark .card-premium:hover {
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4)
 }

 .status-online {
     animation: statusPulse 2s ease-in-out infinite
 }

 @keyframes statusPulse {

     0%,
     100% {
         box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4)
     }

     50% {
         box-shadow: 0 0 0 8px rgba(16, 185, 129, 0)
     }
 }

 .menu-active {
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(14, 165, 233, 0.1));
     border-right: 3px solid #10b981;
     color: #059669
 }

 .dark .menu-active {
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(14, 165, 233, 0.15));
     color: #34d399
 }

 .badge-pulse {
     animation: badgePulse 2s ease-in-out infinite
 }

 @keyframes badgePulse {

     0%,
     100% {
         transform: scale(1)
     }

     50% {
         transform: scale(1.15)
     }
 }

 .progress-animated {
     transition: width 1.5s ease-in-out
 }

 .table-responsive {
     overflow-x: auto;
     -webkit-overflow-scrolling: touch
 }

 .table-responsive::-webkit-scrollbar {
     height: 4px
 }

 .sidebar-overlay {
     background: rgba(0, 0, 0, 0.5);
     backdrop-filter: blur(4px)
 }

 .toast-container {
     position: fixed;
     top: 1rem;
     right: 1rem;
     z-index: 99999;
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
     pointer-events: none
 }

 .toast-container>* {
     pointer-events: auto
 }

 .dropdown-panel {
     position: absolute;
     right: 0;
     margin-top: 0.5rem
 }

 @media (max-width: 640px) {
     .dropdown-panel {
         position: fixed !important;
         top: 4.25rem !important;
         left: 0.5rem !important;
         right: 0.5rem !important;
         margin-top: 0 !important;
         width: auto !important;
         max-width: none !important;
         max-height: calc(100vh - 5rem) !important;
         overflow-y: auto !important;
     }
 }

 @media (max-width: 480px) {
     .toast-container {
         top: 0.5rem !important;
         right: 0.5rem !important;
         left: 0.5rem !important;
     }

     .toast-container>* {
         min-width: 0 !important;
         max-width: 100% !important;
         width: 100%;
     }
 }

 .tab-btn.active {
     background: white;
     color: #059669;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
 }

 .dark .tab-btn.active {
     background: #334155;
     color: #34d399;
 }

 /* ==== GOOGLE-STYLE CALENDAR WITH STROKE LINES ==== */
 .calendar-grid {
     display: grid;
     grid-template-columns: repeat(7, 1fr);
     border: 1px solid #e5e7eb;
     border-radius: 0.75rem;
     overflow: hidden;
     background: #e5e7eb;
     gap: 1px;
 }

 .dark .calendar-grid {
     border-color: #334155;
     background: #334155;
 }

 /* Weekday header cells */
 .calendar-weekday {
     background: #f9fafb;
     padding: 0.75rem 0.5rem;
     text-align: center;
     font-size: 0.7rem;
     font-weight: 600;
     color: #6b7280;
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .dark .calendar-weekday {
     background: #1e293b;
     color: #94a3b8;
 }

 /* Day cells */
 .calendar-day {
     background: white;
     min-height: 90px;
     padding: 0.5rem;
     display: flex;
     flex-direction: column;
     cursor: pointer;
     transition: all 0.2s;
     position: relative;
 }

 .dark .calendar-day {
     background: #0f172a;
 }

 .calendar-day:hover:not(.other-month) {
     background: #f0fdf4;
 }

 .dark .calendar-day:hover:not(.other-month) {
     background: rgba(16, 185, 129, 0.08);
 }

 .calendar-day.today {
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(14, 165, 233, 0.08));
 }

 .dark .calendar-day.today {
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(14, 165, 233, 0.15));
 }

 .calendar-day.today .day-number {
     background: linear-gradient(135deg, #10b981, #0ea5e9);
     color: white;
     width: 28px;
     height: 28px;
     border-radius: 50%;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     font-weight: 700;
     box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
 }

 .calendar-day.selected {
     background: rgba(16, 185, 129, 0.1);
     box-shadow: inset 0 0 0 2px #10b981;
 }

 .dark .calendar-day.selected {
     background: rgba(16, 185, 129, 0.15);
     box-shadow: inset 0 0 0 2px #34d399;
 }

 .calendar-day.other-month {
     background: #fafafa;
     cursor: default;
 }

 .dark .calendar-day.other-month {
     background: #020617;
 }

 .calendar-day.other-month .day-number {
     color: #cbd5e1;
 }

 .dark .calendar-day.other-month .day-number {
     color: #475569;
 }

 .day-number {
     font-size: 0.85rem;
     font-weight: 600;
     color: #374151;
 }

 .dark .day-number {
     color: #e2e8f0;
 }

 .day-events {
     margin-top: auto;
     display: flex;
     flex-wrap: wrap;
     gap: 3px;
 }

 .day-dot {
     width: 6px;
     height: 6px;
     border-radius: 50%;
     display: inline-block;
 }

 .day-count {
     font-size: 0.65rem;
     color: #6b7280;
     margin-top: 2px;
     font-weight: 600;
 }

 .dark .day-count {
     color: #94a3b8;
 }

 /* Mobile Calendar */
 @media (max-width: 640px) {
     .calendar-day {
         min-height: 55px;
         padding: 0.35rem;
     }

     .calendar-weekday {
         padding: 0.5rem 0.25rem;
         font-size: 0.6rem;
     }

     .day-number {
         font-size: 0.75rem;
     }

     .calendar-day.today .day-number {
         width: 22px;
         height: 22px;
         font-size: 0.7rem;
     }

     .day-dot {
         width: 4px;
         height: 4px;
     }
 }