html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Etherview Licensing - Custom Styles for Materialize */

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: #0F0F19;
  color: #E0FFFF;
}

main {
  flex: 1 0 auto;
  min-height: calc(100vh - 200px);
  background-color: #0F0F19;
}

/* Page Footer */
.page-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #231937 0%, #0F0F19 100%) !important;
  border-top: 1px solid rgba(106, 13, 173, 0.3);
}

/* Card Enhancements */
.card {
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a2e;
  color: #E0FFFF;
  border: 1px solid rgba(106, 13, 173, 0.3);
}

.card .card-content {
  padding: 24px;
}

.card .card-title {
  color: #FFD700 !important;
}

/* Pricing Cards */
.card h3 {
  margin: 20px 0;
  font-weight: 300;
  color: #FFD700;
}

.card h4,
.card h5,
.card h6 {
  color: #E0FFFF;
}

.card p {
  color: #E0FFFF;
}

/* Material Icons alignment */
.material-icons.tiny {
  font-size: 1rem;
  vertical-align: middle;
  margin-right: 8px;
}

/* Code styling */
code {
  background-color: #231937;
  color: #FFD700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(106, 13, 173, 0.3);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

/* Collection items without border */
.collection-item {
  padding: 8px 0 !important;
  line-height: 1.8;
  color: #E0FFFF;
}

.collection {
  border: 1px solid rgba(106, 13, 173, 0.3);
  background-color: #1a1a2e;
}

.collection .collection-item {
  background-color: #1a1a2e;
  border-bottom: 1px solid rgba(106, 13, 173, 0.2);
}

/* Responsive table improvements */
table.responsive-table {
  border-collapse: separate;
  border-spacing: 0;
  background-color: #1a1a2e;
  border: 1px solid rgba(106, 13, 173, 0.3);
}

table.responsive-table thead {
  background: linear-gradient(135deg, #6A0DAD, #231937);
}

table.responsive-table thead tr th {
  color: #FFD700;
  font-weight: 500;
}

table.responsive-table tbody tr {
  background-color: #1a1a2e;
  border-bottom: 1px solid rgba(106, 13, 173, 0.2);
}

table.responsive-table tbody tr td {
  color: #E0FFFF;
}

/* Button hover effects */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Chip styling */
.chip {
  font-size: 0.9rem;
  height: 28px;
  line-height: 28px;
  background-color: #6A0DAD;
  color: #E0FFFF;
}

/* Toast customization */
.toast {
  border-radius: 4px;
}

/* Form input focus */
input:focus,
select:focus,
textarea:focus {
  border-color: #6A0DAD !important;
  box-shadow: 0 1px 0 0 #6A0DAD !important;
}

input,
select,
textarea {
  color: #E0FFFF !important;
  background-color: #1a1a2e !important;
  border-color: rgba(106, 13, 173, 0.3) !important;
}

label {
  color: #E0FFFF !important;
}

/* Card panel */
.card-panel {
  border-radius: 8px;
  padding: 20px;
  background-color: #1a1a2e;
  border: 1px solid rgba(106, 13, 173, 0.3);
}

/* Navbar enhancements */
nav {
  min-height: 64px;
}

nav .brand-logo {
  font-weight: 500;
  font-size: 1.8rem;
}

nav .nav-wrapper {
  padding: 0 1rem;
}

/* Ensure nav items don't wrap and stay aligned */
nav ul li {
  white-space: nowrap;
}

nav ul.right {
  overflow-x: auto;
  flex-wrap: nowrap;
}

/* Admin Dropdown Styling */
.dropdown-content {
  background-color: #263238 !important;
  min-width: 250px !important;
  width: auto !important;
  white-space: nowrap !important;
  overflow-x: visible !important;
  border: 1px solid rgba(106, 13, 173, 0.3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4) !important;
}

.dropdown-content li {
  min-height: 48px;
}

.dropdown-content li > a,
.dropdown-content li > span {
  color: #E0FFFF !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.dropdown-content li > a:hover {
  background-color: #37474f !important;
}

.dropdown-content li.divider {
  background-color: #455a64 !important;
  margin: 4px 0 !important;
}

.dropdown-content li > a i.material-icons {
  margin-right: 10px;
  color: #80deea !important;
}

/* Protocol Cards Styling */
.card .collection-item {
  display: flex !important;
  align-items: flex-start !important;
  padding: 8px 0 !important;
}

.card .collection-item i.material-icons.tiny {
  margin-right: 8px;
  margin-top: 2px;
  flex-shrink: 0;
}

.card .card-title i.material-icons {
  margin-right: 8px;
  vertical-align: middle;
}

/* Section spacing */
.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Center align helpers */
.center-align h3 {
  margin-bottom: 10px;
}

.center-align h5 {
  margin-top: 5px;
  font-weight: 300;
}

/* Responsive adjustments */
@media only screen and (max-width: 600px) {
  .card .card-content {
    padding: 16px;
  }
  
  nav .brand-logo {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 2rem !important;
  }
  
  table.responsive-table {
    font-size: 0.85rem;
  }
}

/* Animation for cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Highlight most popular plan */
.blue.lighten-5 {
  border: 2px solid #2196F3;
}

/* Hero Section Styles */
.hero-section {
  padding: 80px 0;
  margin-top: 0;
  background: linear-gradient(135deg, #0F0F19 0%, #231937 50%, #6A0DAD 100%);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.hero-section .container {
  max-width: 1200px;
}

.hero-section .row {
  margin-bottom: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(106, 13, 173, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(224, 255, 255, 0.05) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3Ccircle cx='5' cy='5' r='0.5'/%3E%3Ccircle cx='50' cy='10' r='0.7'/%3E%3Ccircle cx='15' cy='45' r='0.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  animation: cosmicGlow 20s ease-in-out infinite;
}

@keyframes cosmicGlow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-section .flow-text {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  margin-top: 30px;
}

.hero-buttons .btn-large {
  margin-right: 15px;
  margin-bottom: 15px;
  font-weight: 500;
  border-radius: 4px;
}

.hero-image-placeholder {
  padding: 40px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Headers */
.section-header {
  margin-bottom: 50px;
  margin-top: 20px;
}

.section-header h3 {
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #6A0DAD, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header .flow-text {
  font-size: 1.2rem;
  color: #E0FFFF;
  opacity: 0.9;
}

/* Feature Cards */
.feature-card {
  height: 100%;
  min-height: 320px;
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 1px solid rgba(106, 13, 173, 0.3);
  background-color: #1a1a2e;
}

.feature-card .material-icons.large {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #6A0DAD, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card .card-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 20px 0;
  color: #FFD700 !important;
}

.feature-card p {
  color: #E0FFFF;
  line-height: 1.6;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(106, 13, 173, 0.5), 0 0 30px rgba(255, 215, 0, 0.2);
  border-color: rgba(106, 13, 173, 0.6);
  background-color: #231937;
}

/* Use Case Cards */
.use-case-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #FFD700;
  margin-bottom: 10px;
}

#use-cases .card {
  margin-bottom: 20px;
  background-color: #1a1a2e;
  border: 1px solid rgba(106, 13, 173, 0.3);
  transition: all 0.3s ease;
  border-left: 4px solid #FFD700;
}

#use-cases .card:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 16px rgba(106, 13, 173, 0.2);
  border-left-color: #6A0DAD;
}

#use-cases .material-icons.medium {
  font-size: 3rem;
  background: linear-gradient(135deg, #6A0DAD, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Why EtherView Section */
#why-etherview .card-panel {
  padding: 30px;
  transition: all 0.3s ease;
  background-color: #1a1a2e;
  border: 1px solid rgba(106, 13, 173, 0.3);
}

#why-etherview .card-panel:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(106, 13, 173, 0.4), 0 0 20px rgba(255, 215, 0, 0.15);
  background-color: #231937;
}

#why-etherview .card-panel h5 {
  color: #FFD700;
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#why-etherview .card-panel p {
  color: #E0FFFF;
  line-height: 1.7;
}

/* Demo Section */
.demo-placeholder {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 60px 20px;
  background-color: #1a1a2e;
  border: 1px solid rgba(106, 13, 173, 0.3);
}

.demo-placeholder h5 {
  margin: 20px 0 10px 0;
  color: #FFD700;
}

.screenshot-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  background-color: #231937;
  border-bottom: 1px solid rgba(106, 13, 173, 0.3);
}

#demo .card {
  transition: all 0.3s ease;
  background-color: #1a1a2e;
  border: 1px solid rgba(106, 13, 173, 0.3);
}

#demo .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(106, 13, 173, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Pricing Section Enhancements */
#pricing .card.hoverable:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(106, 13, 173, 0.5), 0 0 40px rgba(255, 215, 0, 0.25);
  background-color: #231937;
}

/* Cosmic glow effect for pricing cards */
#pricing .card {
  transition: all 0.4s ease;
  background-color: #1a1a2e;
  border: 1px solid rgba(106, 13, 173, 0.3);
}

#pricing .card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #6A0DAD, #FFD700, #6A0DAD);
  border-radius: 8px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

#pricing .card:hover::before {
  opacity: 0.3;
  animation: cosmicPulse 2s ease-in-out infinite;
}

@keyframes cosmicPulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

/* Footer Enhancements */
.page-footer h5 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-footer ul {
  margin: 0;
}

.page-footer ul li {
  margin-bottom: 8px;
}

.page-footer ul li a {
  transition: all 0.3s ease;
  display: inline-block;
  color: #E0FFFF !important;
}

.page-footer ul li a:hover {
  padding-left: 5px;
  color: #FFD700 !important;
}

/* Responsive Design */
@media only screen and (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-section .flow-text {
    font-size: 1.1rem;
  }
  
  .section-header h3 {
    font-size: 2.2rem;
  }
  
  .hero-image-placeholder {
    margin-top: 40px;
  }
}

@media only screen and (max-width: 600px) {
  .hero-section {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-section .flow-text {
    font-size: 1rem;
  }
  
  .section-header h3 {
    font-size: 1.8rem;
  }
  
  .feature-card {
    min-height: auto;
  }
  
  .hero-buttons .btn-large {
    width: 100%;
    margin-right: 0;
  }
  
  .demo-placeholder {
    min-height: 300px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Additional Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon Animations */
.material-icons {
  transition: transform 0.3s ease;
}

.card:hover .material-icons {
  transform: scale(1.1);
}

/* Ensure content is visible by default */
.card, .card-panel {
  opacity: 1;
  transform: translateY(0);
}

/* Striped Tables - Matching Licenses Page Style */
table.striped {
  background-color: #37474f !important;
  color: #eceff1 !important;
}

table.striped > thead {
  background-color: #455a64 !important;
}

table.striped > thead th {
  color: #fff !important;
}

table.striped > tbody > tr:nth-child(odd) {
  background-color: rgba(106, 13, 173, 0.15) !important;
}

table.striped > tbody > tr:nth-child(even) {
  background-color: rgba(124, 77, 255, 0.08) !important;
}

table.striped > tbody > tr:hover {
  background-color: rgba(106, 13, 173, 0.25) !important;
}
