/**
 * FloatPanel.css - Reusable Float Panel Styles
 * 
 * Standalone CSS for FloatPanel component.
 * No dependencies on other stylesheets.
 * 
 * @version 1.0.0
 * @author T4C
 */

/* =========================
   FLOAT PANEL OVERLAY
   ========================= */
.float-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.float-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   FLOAT PANEL
   ========================= */
.float-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.float-panel.active {
  right: 0 !important;
}

/* =========================
   PANEL HEADER
   ========================= */
.float-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  color: #333;
  border-bottom: 1px solid #E1E8ED;
  flex-shrink: 0;
}

.float-panel__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.float-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: #d46f6f;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.float-panel__close:hover {
  background-color: #333;
  transform: rotate(90deg);
}

.float-panel__close i {
  font-size: 18px;
}

/* =========================
   PANEL CONTENT
   ========================= */
.float-panel__content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

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

.float-panel__content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.float-panel__content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.float-panel__content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#float-panel-footer {
  position: sticky;
  bottom: -24px;
  background: #fff;
  padding: 1rem 0;
  z-index: 10;
  border-top: 1px solid #dee2e6;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .float-panel {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 480px) {
  .float-panel__header {
    padding: 14px 16px;
  }

  .float-panel__title {
    font-size: 18px;
  }

  .float-panel__content {
    padding: 16px;
  }
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes slideIn {
  from {
    right: -450px;
  }

  to {
    right: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}