/* Instant Messenger - Front CSS */

.im-contact-wrap {
  margin: 15px 0;
}

.im-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3498db;
  color: #fff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none !important;
}

.im-contact-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

.im-contact-btn i {
  font-size: 18px;
}

.im-login-required {
  background: #95a5a6;
  cursor: pointer;
}

.im-login-required:hover {
  background: #7f8c8d;
}

/* Modal */
.im-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.im-modal-overlay.active {
  display: flex;
}

.im-modal {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  direction: rtl;
}

.im-modal h3 {
  margin: 0 0 15px;
  font-size: 18px;
  color: #333;
}

.im-modal textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  direction: rtl;
}

.im-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-start;
}

.im-modal-actions button {
  padding: 10px 24px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.im-send-btn {
  background: #3498db;
  color: #fff;
}

.im-send-btn:hover {
  background: #2980b9;
}

.im-cancel-btn {
  background: #ecf0f1;
  color: #333;
}

.im-cancel-btn:hover {
  background: #dfe6e9;
}

/* Dashboard badge */
.im-dashboard-link .im-badge {
  background: #e74c3c;
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 11px;
  margin-right: 5px;
}

/* RTL */
[dir="rtl"] .im-contact-btn {
  flex-direction: row-reverse;
}

/* Mobile */
@media (max-width: 480px) {
  .im-contact-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  .im-modal {
    width: 95%;
    padding: 15px;
  }
}