:root {
  --glass-bg: rgba(23, 25, 35, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
}

/* Video Background Optimization */
@media (max-width: 768px) {
  video {
    object-position: center;
  }
}

@media (min-width: 769px) {
  video {
    object-position: center 25%;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.7);
}

/* Calendar mobile styles */
@media (max-width: 640px) {
  .has-event {
    background-color: rgba(139, 92, 246, 0.2) !important;
    border-radius: 4px;
  }
}

/* Toast notification styles */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 16px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: rgba(34, 197, 94, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast.error {
  background: rgba(239, 68, 68, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast.info {
  background: rgba(59, 130, 246, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Calendar specific styles */
.calendar-nav-btn:hover {
  transform: scale(1.05);
}

.filter-btn.active {
  box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
}

/* Enhanced button styles */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form improvements */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Modal improvements */
.modal-backdrop {
  backdrop-filter: blur(8px);
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Hover effects for cards */
.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}