/* assets/css/styles.css - futuristic yet formal */
/* Responsive Base Styles */
* {
  box-sizing: border-box;
}

body.bg-futuristic {
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  min-height:100vh;
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
  padding-bottom: 1rem;
}
.card.glass {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(2,6,23,0.15);
  backdrop-filter: blur(8px) saturate(120%);
}

#calendar {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px) saturate(120%);
}

.modal-content {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px) saturate(120%);
  color: var(--color-text-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
}

.btn-primary { background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary)); border: none; }
.btn-success { background: linear-gradient(90deg, var(--color-success), #1bc9ff); border: none; }

/* ---------------------------------
   FullCalendar Premium Overhaul
   --------------------------------- */
.fc .fc-toolbar-title {
  font-family: var(--font-family-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fc-theme-standard td, .fc-theme-standard th {
  border-color: var(--border-color) !important;
}
.fc-theme-standard .fc-scrollgrid {
  border: none !important;
}

.fc .fc-col-header-cell-cushion {
  color: var(--color-text-secondary);
  font-weight: 600;
  padding: 8px 4px !important;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.fc .fc-daygrid-day-number {
  color: var(--color-text-primary);
  font-weight: 500;
  padding: 8px !important;
}

.fc .fc-day-today {
  background: rgba(124, 92, 255, 0.05) !important;
}

.fc .fc-daygrid-event {
  border-radius: 6px;
  margin: 1px 4px;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc .fc-daygrid-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 5;
}

.fc .fc-event {
  color: #fff !important; /* Always readable on distinct event chips */
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  padding: 2px 4px;
}

.fc .fc-daygrid-event .fc-event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* owner badge small styling */
.owner-badge {
  font-weight: 600;
  opacity: 0.95;
}

/* location badge styling */
.location-badge {
  font-weight: 600;
  opacity: 0.95;
  display: inline-block;
  padding: 2px 6px;
  margin-right: 6px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.location-badge i {
  margin-right: 2px;
}
.location-badge i {
  margin-right: 2px;
}

/* Enhanced Form Field Styles */
.form-field-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-field-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.form-field-wrapper .form-control {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-field-wrapper .form-control:focus {
  background: var(--color-bg-glass-hover);
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
  outline: none;
  color: var(--color-text-primary);
}

.form-field-wrapper .form-control::placeholder {
  color: var(--color-text-muted);
}

.form-field-icon {
  position: absolute;
  left: 0.875rem;
  top: 2.5rem;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.form-field-wrapper:focus-within .form-field-icon {
  color: var(--color-accent-primary);
}

/* Password Strength Indicator */
.password-strength-container {
  margin-top: 0.75rem;
}

.password-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.password-strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength-fill.weak {
  width: 33%;
  background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

.password-strength-fill.medium {
  width: 66%;
  background: linear-gradient(90deg, #ffa94d, #ffc078);
}

.password-strength-fill.strong {
  width: 100%;
  background: linear-gradient(90deg, #1fd1a9, #1bc9ff);
}

.password-requirements {
  font-size: 0.85rem;
  color: rgba(230, 238, 248, 0.7);
}

.password-requirements .requirement {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.password-requirements .requirement.met {
  color: #1fd1a9;
}

.password-requirements .requirement-icon {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* Enhanced Buttons */
.btn-enhanced {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-enhanced:active {
  transform: translateY(0);
}

/* Enhanced Alert Styles */
.alert-enhanced {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-enhanced .alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-info.alert-enhanced {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.08));
  border-left: 3px solid #0d6efd;
  color: #a5d8ff;
}

.alert-danger.alert-enhanced {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.08));
  border-left: 3px solid #dc3545;
  color: #ffb3b3;
}

.alert-success.alert-enhanced {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.15), rgba(25, 135, 84, 0.08));
  border-left: 3px solid #198754;
  color: #a3e4c7;
}

/* Invite Card Enhancements */
.invite-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.invite-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2,6,23,0.4);
}

.invite-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.invite-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #2ec1ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.invite-requester-info {
  flex: 1;
}

.invite-requester-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e6eef8;
  margin-bottom: 0.25rem;
}

.invite-requester-email {
  font-size: 0.95rem;
  color: rgba(230, 238, 248, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.invite-requester-email .email-icon {
  font-size: 0.9rem;
  opacity: 0.6;
}

.invite-meta {
  font-size: 0.85rem;
  color: rgba(230, 238, 248, 0.5);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.invite-actions {
  display: flex;
  gap: 0.75rem;
}

.invite-actions .btn {
  flex: 1;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.invite-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.invite-actions .btn-success {
  background: linear-gradient(90deg,#1fd1a9,#1bc9ff);
  border: none;
}

.invite-actions .btn-danger {
  background: linear-gradient(90deg,#ff6b6b,#ff8787);
  border: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(230, 238, 248, 0.5);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 1rem;
}

/* Page Title Enhancement */
.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title h3 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7c5cff, #2ec1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.page-title .subtitle {
  font-size: 0.95rem;
  color: rgba(230, 238, 248, 0.6);
}

/* Invite Banner Enhancement */
.invite-banner {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.1));
  border: 1px solid rgba(13, 110, 253, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.invite-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.invite-banner-content {
  flex: 1;
}

.invite-banner-title {
  font-weight: 600;
  color: #a5d8ff;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.invite-banner-text {
  font-size: 0.9rem;
  color: rgba(165, 216, 255, 0.8);
  line-height: 1.5;
}

.invite-banner-text strong {
  color: #a5d8ff;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE & MOBILE-FRIENDLY STYLES
   ============================================ */

/* Viewport and Base Responsive */
@media (max-width: 768px) {
  body.bg-futuristic {
    padding-bottom: 2rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .container.py-4,
  .container.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Responsive Navigation */
.navbar {
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

@media (max-width: 991px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: column;
    padding-top: 1rem;
  }
  
  .navbar-expand-lg .d-flex {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .navbar-expand-lg .d-flex .btn {
    width: 100%;
    margin: 0 !important;
  }
  
  .navbar-expand-lg .d-flex > div:first-child {
    display: none; /* Hide user name on mobile in nav */
  }
}

/* Mobile Navigation Toggle */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.375rem 0.75rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Cards */
.card.glass {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .card.glass {
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0;
  }
  
  .card-body,
  .card.glass.p-3,
  .card.glass.p-4 {
    padding: 1.25rem !important;
  }
}

/* Responsive Forms */
@media (max-width: 768px) {
  .form-field-wrapper {
    margin-bottom: 1.25rem;
  }
  
  .form-field-wrapper label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .form-field-wrapper .form-control {
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px; /* Touch-friendly target */
  }
  
  .form-field-icon {
    top: 2.75rem;
    font-size: 1rem;
  }
  
  /* Password requirements on mobile */
  .password-requirements {
    font-size: 0.8rem;
  }
  
  .password-requirements .requirement {
    margin-bottom: 0.35rem;
  }
}

/* Responsive Buttons */
@media (max-width: 768px) {
  .btn,
  .btn-enhanced {
    min-height: 48px; /* Touch-friendly target */
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .btn-sm {
    min-height: 44px;
    padding: 0.625rem 1rem;
  }
  
  .d-grid .btn {
    margin-bottom: 0;
  }
  
  .invite-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .invite-actions .btn {
    width: 100%;
    margin: 0;
  }
  
  /* Button groups on mobile */
  .d-flex.gap-2 .btn,
  .d-flex.gap-3 .btn {
    width: 100%;
  }
}

/* Responsive Page Titles */
@media (max-width: 768px) {
  .page-title {
    margin-bottom: 1.5rem;
  }
  
  .page-title h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .page-title .subtitle {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }
}

/* Responsive Alerts */
@media (max-width: 768px) {
  .alert,
  .alert-enhanced {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .alert-enhanced {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .alert-enhanced .alert-icon {
    font-size: 1.1rem;
  }
}

/* Responsive Invite Cards */
@media (max-width: 768px) {
  .invite-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .invite-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .invite-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .invite-requester-name {
    font-size: 1.1rem;
  }
  
  .invite-requester-email {
    font-size: 0.9rem;
  }
  
  .invite-meta {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
}

/* Responsive Invite Banner */
@media (max-width: 768px) {
  .invite-banner {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .invite-banner-icon {
    font-size: 1.5rem;
  }
  
  .invite-banner-title {
    font-size: 1rem;
  }
  
  .invite-banner-text {
    font-size: 0.85rem;
  }
}

/* Responsive Calendar */
@media (max-width: 768px) {
  #calendar {
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  /* FullCalendar mobile adjustments */
  .fc .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .fc .fc-toolbar-title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
  }
  
  .fc .fc-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-height: 44px;
  }
  
  .fc .fc-button-group .fc-button {
    padding: 0.4rem 0.6rem;
  }
  
  .fc .fc-daygrid-day {
    min-height: 60px;
  }
  
  .fc .fc-daygrid-event {
    font-size: 0.75rem;
    padding: 2px 4px;
  }
  
  .fc .fc-event-title {
    font-size: 0.7rem;
  }
  
  .fc .fc-col-header-cell {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
  
  .fc .fc-daygrid-day-number {
    font-size: 0.85rem;
    padding: 0.25rem;
  }
}

@media (max-width: 576px) {
  #calendar {
    padding: 0.5rem;
  }
  
  .fc .fc-header-toolbar {
    margin-bottom: 0.5rem;
  }
  
  .fc .fc-toolbar-title {
    font-size: 1.1rem;
  }
  
  .fc .fc-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .fc .fc-button-group {
    flex-wrap: wrap;
  }
  
  .fc .fc-button-group .fc-button {
    flex: 1 1 auto;
    min-width: 60px;
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .modal-title {
    font-size: 1.25rem;
    flex: 1;
    min-width: 0;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-body .mb-2,
  .modal-body .mb-3 {
    margin-bottom: 1rem !important;
  }
  
  .modal-body label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .modal-body .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
    padding: 0.75rem;
  }
  
  .modal-body textarea.form-control {
    min-height: 100px;
  }
  
  .modal-footer {
    padding: 1rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    margin: 0;
    min-height: 48px;
  }
  
  .modal-footer .me-auto {
    margin-right: 0 !important;
    order: 3;
  }
}

/* Responsive Share Page */
@media (max-width: 768px) {
  .card.glass h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .card.glass p.small {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .card.glass .mb-3 {
    margin-bottom: 1.25rem !important;
  }
  
  .card.glass .form-control {
    min-height: 48px;
    font-size: 16px;
  }
}

/* Responsive Empty State */
@media (max-width: 768px) {
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-state-icon {
    font-size: 2.5rem;
  }
  
  .empty-state-text {
    font-size: 0.9rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Mobile touch devices */
  .btn,
  .btn-enhanced,
  a.btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .form-control,
  input,
  textarea,
  select {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Remove hover effects on touch devices */
  .btn-enhanced:hover,
  .invite-card:hover {
    transform: none;
  }
  
  /* Better tap targets */
  .navbar-nav .nav-link,
  .navbar a {
    padding: 0.75rem 1rem;
    min-height: 44px;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .container.py-4,
  .container.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .page-title {
    margin-bottom: 1rem;
  }
  
  .page-title h3 {
    font-size: 1.35rem;
  }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card-body,
  .card.glass.p-3,
  .card.glass.p-4 {
    padding: 1rem !important;
  }
  
  .page-title h3 {
    font-size: 1.35rem;
  }
  
  .invite-requester-name {
    font-size: 1rem;
  }
  
  .btn,
  .btn-enhanced {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }
}

/* ============================================
   COLOR CODING STYLES
   ============================================ */

/* Color Selector Group */
.color-selector-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #e6eef8;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  flex: 1 1 auto;
  min-width: 0;
}

.color-option:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.color-option.active {
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.3);
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  display: inline-block;
}

/* Event Color Styling */
.fc-event[data-importance] {
  font-weight: 500;
}

.fc-event[data-importance="1"],
.fc-event[data-importance="2"] {
  font-weight: 600;
}

/* Ensure colored events have good contrast */
.fc-event {
  transition: all 0.2s ease;
}

.fc-event:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Responsive Color Selector */
@media (max-width: 768px) {
  .color-selector-group {
    gap: 0.375rem;
  }
  
  .color-option {
    padding: 0.625rem 0.5rem;
    font-size: 0.8rem;
    flex: 1 1 calc(50% - 0.375rem);
    min-width: calc(50% - 0.375rem);
  }
  
  .color-swatch {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 576px) {
  .color-option {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .color-option span:last-child {
    font-size: 0.75rem;
  }
}

/* Timezone Display Styles */
.timezone-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e6eef8;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.timezone-display:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.timezone-display i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.timezone-display #timezoneLabel {
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn-enhanced:hover,
  .invite-card:hover,
  .timezone-display:hover,
  .color-option:hover,
  .card:hover {
    transform: none !important;
  }
}

/* Responsive Timezone Display */
@media (max-width: 991px) {
  .timezone-display {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .timezone-display i {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .timezone-display {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .navbar-expand-lg .d-flex .timezone-display {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   OVERLAPPING EVENTS STYLES
   ============================================ */

/* Overlapping event styling */
.fc-event-overlapping {
  position: relative;
  border-style: dashed !important;
  opacity: 0.95;
}

.fc-event-overlapping::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 5px,
    rgba(255, 255, 255, 0.1) 5px,
    rgba(255, 255, 255, 0.1) 10px
  );
  pointer-events: none;
  border-radius: inherit;
}

/* Overlap badge */
.fc-event-overlap-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #EF4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
  line-height: 1;
  padding: 0;
}

/* Overlap indicator in month view */
.fc-daygrid-event.fc-event-overlapping {
  border-left-width: 6px !important;
  border-left-style: solid !important;
  border-left-color: #EF4444 !important;
}

/* Overlap indicator in week/day views */
.fc-timegrid-event.fc-event-overlapping {
  border-top: 2px solid #EF4444;
  border-bottom: 2px solid #EF4444;
}

/* Hover effect for overlapping events */
.fc-event-overlapping:hover {
  opacity: 1;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Responsive overlap badge */
@media (max-width: 768px) {
  .fc-event-overlap-badge {
    width: 18px;
    height: 18px;
    font-size: 9px;
    top: -6px;
    right: -6px;
  }
  
  .fc-event-overlapping {
    font-size: 0.75rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .modal,
  .timezone-display {
    display: none !important;
  }
  
  body.bg-futuristic {
    background: white;
    color: black;
  }
  
  .card.glass {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }
  
  .fc-event-overlap-badge {
    display: none;
  }
}

/* ---------------------------------
   Task Dual View Adjustments
   --------------------------------- */
.task-item {
  transition: all 0.2s ease-in-out;
}
.task-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-glass-hover);
}
.task-completed {
  background: rgba(0, 0, 0, 0.05); /* very subtle dark wash */
  border: 1px dashed var(--border-color);
}
.task-checkbox i {
  transition: color 0.15s ease, transform 0.15s ease;
}
.task-checkbox:hover i {
  transform: scale(1.1);
}

/* ============================================
   COMPACT VIEW STYLES
   ============================================ */
.fc-compact .fc-event {
  padding: 1px 2px !important;
  margin: 1px 0 !important;
  font-size: 0.73rem !important;
  line-height: 1.1 !important;
}
.fc-compact .fc-daygrid-day-top {
  padding: 0px 2px !important;
}
.fc-compact .fc-daygrid-event-harness {
  margin-top: 1px !important;
}
.fc-compact .fc-daygrid-day-number {
  font-size: 0.75rem !important;
  padding: 2px !important;
}
