/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Modern Light Blue Theme */
  --primary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  /* Blue Gradient */
  --secondary-gradient: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  /* Purple/Pink */
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  /* Green */

  --primary-color: #0072ff;
  --primary-dark: #0056c2;
  --secondary-color: #6c5ce7;
  --accent-color: #ff7675;

  /* Light Theme Backgrounds */
  --bg-primary: #f0f2f5;
  /* Light gray-blue base */
  --bg-body-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  /* Full body gradient */
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f8ff;

  /* Dark Text for Light Theme */
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-muted: #b2bec3;

  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 114, 255, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 114, 255, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 114, 255, 0.15);

  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-body-gradient);
  /* Gradient Background */
  background-attachment: fixed;
  /* Fixed gradient when scrolling */
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===================================
   FORMS
   =================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-viewer {
  background: rgba(255, 255, 255, 0.1) !important;
  /* Glass effect */
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: fixed;
  /* Overlay on top of viewer */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2000;
  /* Higher than map controls */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-viewer .navbar-brand h1 {
  /* Make text readable on transparent bg if needed, or keep gradient */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Adjust dashboard-container top padding if fixed navbar is used elsewhere, 
   but strictly for viewer page, we want it overlaying */
body.viewer-page {
  padding-top: 0;
  /* Viewer takes full height */
}

/* Ensure viewer container takes full height behind navbar */
#viewer {
  height: 100vh !important;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand h1 {
  font-size: 1.5rem;
  margin: 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.back-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-right: 1rem;
}

.back-link:hover {
  color: var(--primary-dark);
}

/* ===================================
   LOGIN PAGE
   =================================== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(102, 126, 234, 0.15) 0%,
      transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -250px;
  animation: pulse 8s ease-in-out infinite;
}

.login-page::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
      rgba(118, 75, 162, 0.15) 0%,
      transparent 70%);
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.login-container {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.login-header h1 {
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header p {
  color: var(--text-muted);
}

.error-message {
  background: rgba(245, 87, 108, 0.1);
  border: 1px solid rgba(245, 87, 108, 0.3);
  color: #ff6b6b;
  padding: 0.875rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.error-message.shake {
  animation: shake 0.5s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
}

.demo-hint {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  padding: 0.875rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===================================
   DASHBOARD PAGE
   =================================== */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.dashboard-header {
  margin-bottom: 3rem;
}

.dashboard-header h2 {
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.project-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  /* Fixed height */
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop to fit */
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
  /* Zoom effect on hover */
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-thumbnail,
.project-thumbnail-placeholder {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.project-info {
  padding: 1.5rem;
}

.project-name {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===================================
   VIEWER PAGE
   =================================== */
.viewer-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.navbar-viewer {
  flex-shrink: 0;
}

.viewer-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.panorama-viewer {
  width: 100%;
  height: 100%;
}

.viewer-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 35, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 100;
}

/* ===================================
   CONTROL PANEL
   =================================== */
.control-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-height: 45vh;
  /* Giới hạn chiều cao để không che Map */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.control-header h3 {
  margin: 0;
  font-size: 0.9rem;
}

.btn-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-toggle:hover {
  background: var(--bg-hover);
}

.control-content {
  padding: 0.9rem;
  overflow-y: auto;
  flex: 1;
  /* Tự động lấp đầy phần còn lại */
}

.control-section {
  margin-bottom: 1.2rem;
}

.control-section:last-child {
  margin-bottom: 0;
}

.control-section h4 {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.control-section .btn {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

.control-section .btn span {
  font-size: 0.9rem;
}

.control-section p {
  font-size: 0.75rem;
}

.nodes-list {
  font-size: 0.8rem;
}

#markersList {
  font-size: 0.8rem;
}

.help-list {
  list-style: none;
  padding: 0;
}

.help-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}

.help-list li:last-child {
  border-bottom: none;
}

/* ===================================
   LOADING & EMPTY STATES
   =================================== */
.loading-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.empty-state code {
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--primary-color);
}

/* ===================================
   SPINNERS
   =================================== */
.spinner,
.spinner-large {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner {
  width: 20px;
  height: 20px;
}

.spinner-large {
  width: 50px;
  height: 50px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ===================================
   NOTIFICATIONS
   =================================== */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .dashboard-container {
    padding: 2rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Control panel - minimized by default on mobile */
  .control-panel {
    width: calc(100% - 20px);
    right: 10px;
    left: 10px;
    top: auto;
    bottom: 10px;
    max-height: 30vh;
    font-size: 0.85rem;
  }

  .control-header {
    padding: 0.6rem 1rem;
  }

  .control-header h3 {
    font-size: 0.85rem;
  }

  .control-section h4 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .control-content {
    padding: 0.8rem;
  }

  .control-section {
    margin-bottom: 1rem;
  }

  /* Navigation controls - mobile specific */
  .nav-controls {
    top: auto;
    bottom: calc(30vh + 20px);
    left: 10px;
    right: auto;
    transform: none;
    padding: 6px 8px;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 200px;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
  }

  .nav-btn span {
    font-size: 14px;
  }

  .nav-btn small {
    display: none;
    /* Hide text labels on mobile */
  }

  .nav-info {
    font-size: 12px;
    padding: 0 6px;
    width: 100%;
    text-align: center;
    order: -1;
    /* Move to top */
  }

  /* Map - hide by default on mobile, show when toggled */
  #leaflet-map-container {
    width: 200px;
    height: 150px;
    bottom: auto;
    top: 60px;
    right: 10px;
    display: none;
    /* Hidden by default */
  }

  #leaflet-map-container.show {
    display: block;
  }

  #leaflet-map-container.minimized {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Navbar adjustments */
  .navbar-container {
    padding: 0.4rem 0.5rem;
    flex-wrap: wrap;
  }

  .navbar-brand {
    flex: 1;
    min-width: 150px;
  }

  .navbar-brand h1 {
    font-size: 0.95rem;
  }

  .navbar-brand .back-link {
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }

  .navbar-menu {
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }

  /* Hide some buttons on very small screens */
  #screenshotBtn {
    display: none;
  }

  /* Dashboard */
  .dashboard-container {
    padding: 1.5rem 0.75rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Login page */
  .login-card {
    padding: 1.5rem;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===================================
   MODALS & ADMIN FEATURES
   =================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: var(--bg-secondary);
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary-color);
  background: rgba(108, 92, 231, 0.1);
}

.file-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Action Buttons in Project Card */
.project-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.flex-1 {
  flex: 1;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===================================
   MICRO-ANIMATIONS & UX ENHANCEMENTS
   =================================== */

/* Smooth page transitions */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button press effect */
.btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* Card hover lift effect */
.project-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Input focus glow */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.15);
}

/* Loading pulse animation */
.loading-pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Skeleton loading placeholder */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

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

/* Ripple effect for buttons */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.3s, opacity 0.5s;
}

.btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}