/* New Email Button Styles */
.new-email-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.new-email-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Email Composer Styles */
.flash-message {
  animation: slideIn 0.3s ease-out;
}

.flash-notice {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Trix Editor Customization */
trix-toolbar {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  background: #f9fafb;
}

trix-editor {
  border: none !important;
  padding: 1rem;
  min-height: 200px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.trix-content {
  outline: none;
}

.trix-content [data-trix-mutable] {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Minimized Email Composer Indicator */
#email-composer-minimized {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  max-width: 350px;
}

#email-composer-minimized:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

#email-composer-minimized .animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Email Composer Panel Responsive */
@media (max-width: 768px) {
  #email-composer-panel {
    width: 100% !important;
  }
  
  #email-composer-minimized {
    min-width: 250px;
    max-width: 280px;
  }
}