/* Educational Banner */
.educational-banner {
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  padding: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: #856404;
  position: sticky;
  top: 0;
  z-index: 10000;
}

.educational-banner a {
  color: #856404;
  text-decoration: underline;
  font-weight: bold;
}

/* CloudCore Theme Variables */
:root {
  /* Brand Colors - Purple/Blue Gradient Theme */
  --cc-primary: #667eea;      /* Primary purple */
  --cc-primary-dark: #5a67d8; /* Darker purple for hover */
  --cc-secondary: #764ba2;    /* Secondary purple */
  --cc-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Neutral Colors */
  --cc-dark: #2d3748;
  --cc-gray-dark: #4a5568;
  --cc-gray: #718096;
  --cc-gray-light: #cbd5e0;
  --cc-light: #f7fafc;
  --cc-white: #ffffff;
  
  /* Semantic Colors */
  --cc-success: #48bb78;
  --cc-warning: #ed8936;
  --cc-danger: #f56565;
  --cc-info: #4299e1;
  
  /* Shadows & Effects */
  --cc-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --cc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --cc-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
  --cc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override Quarto/Bootstrap primary colors */
.navbar {
  background: var(--cc-gradient) !important;
  box-shadow: var(--cc-shadow);
}

.navbar-brand, .navbar-nav .nav-link {
  color: var(--cc-white) !important;
  transition: var(--cc-transition);
}

.navbar-nav .nav-link:hover {
  color: var(--cc-light) !important;
  transform: translateY(-1px);
}

/* Buttons with CloudCore theme */
.btn-primary, 
.quarto-color-scheme-toggle {
  background: var(--cc-gradient) !important;
  border: none !important;
  box-shadow: var(--cc-shadow);
  transition: var(--cc-transition);
}

.btn-primary:hover,
.quarto-color-scheme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-lg);
}

/* Links with brand color */
a {
  color: var(--cc-primary);
  transition: var(--cc-transition);
}

a:hover {
  color: var(--cc-secondary);
}

/* Existing styles with theme updates */
.rounded {
  box-shadow: var(--cc-shadow);
  border-radius: 60px;
  width: 100%;
}

.card {
  box-shadow: var(--cc-shadow);
  transition: var(--cc-transition);
  text-align: center;
  border: 1px solid var(--cc-gray-light);
  border-radius: 8px;
}

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

lord-icon.small {
  width: 28px;
  height: 28px;
}

/* Access control badges and alerts */
.alert-info {
  background: linear-gradient(135deg, #e6f2ff 0%, #f0e6ff 100%);
  border: 1px solid var(--cc-primary);
  color: var(--cc-gray-dark);
}

.alert-warning {
  background: linear-gradient(135deg, #fffaf0 0%, #fff5f5 100%);
  border: 1px solid var(--cc-warning);
  color: var(--cc-gray-dark);
}

.alert-success {
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
  border: 1px solid var(--cc-success);
  color: var(--cc-gray-dark);
}

/* Access level indicator consistent theming */
#access-indicator {
  background: var(--cc-gradient) !important;
  color: var(--cc-white) !important;
  box-shadow: var(--cc-shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Consistent form styling */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  border: 2px solid var(--cc-gray-light);
  border-radius: 6px;
  padding: 8px 12px;
  transition: var(--cc-transition);
  font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Code blocks with brand colors */
pre {
  border-left: 4px solid var(--cc-primary);
  background: var(--cc-light);
}

code {
  color: var(--cc-secondary);
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Table styling */
table {
  border-collapse: collapse;
}

thead {
  background: var(--cc-gradient);
  color: var(--cc-white);
}

tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

/* Footer with gradient */
.page-footer {
  background: var(--cc-gradient);
  color: var(--cc-white);
  padding: 2rem 0;
  margin-top: 4rem;
}

.page-footer a {
  color: var(--cc-white);
  text-decoration: underline;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for async content */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #access-indicator {
    right: 10px;
    top: 70px;
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* Print styles */
@media print {
  .navbar, 
  #access-indicator,
  .page-footer {
    display: none !important;
  }
}

/* Professional Homepage Styles */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 10px;
  margin-bottom: 3rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cc-dark);
  margin-bottom: 1rem;
}

.hero-section h3 {
  font-size: 1.2rem;
  color: var(--cc-gray);
  font-weight: 400;
  margin-bottom: 2rem;
}

.trust-metrics {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 2rem;
  color: var(--cc-primary);
  margin-bottom: 0.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--cc-shadow);
  transition: var(--cc-transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cc-shadow-lg);
}

.testimonial-section {
  background: var(--cc-light);
  padding: 2rem;
  border-left: 4px solid var(--cc-primary);
  border-radius: 4px;
  margin: 2rem 0;
  font-style: italic;
}

.certifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--cc-shadow-sm);
}

/* Pricing Page Styles */
.pricing-card {
  position: relative;
  padding: 2rem;
  height: 100%;
  transition: var(--cc-transition);
}

.pricing-card.featured {
  border: 2px solid var(--cc-primary);
  transform: scale(1.05);
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cc-gradient);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cc-gray-light);
}

.plan-type {
  color: var(--cc-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.plan-header h2 {
  font-size: 2.5rem;
  color: var(--cc-dark);
  margin: 0.5rem 0;
}

.period {
  font-size: 1rem;
  color: var(--cc-gray);
  font-weight: 400;
}

.plan-description {
  color: var(--cc-gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.btn-block {
  width: 100%;
  margin-top: 1.5rem;
}

.included-feature {
  text-align: center;
  padding: 1rem;
}

/* Contact Page Styles */
.contact-section {
  padding: 2rem;
  background: var(--cc-light);
  border-radius: 8px;
  height: 100%;
}

.office-card {
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--cc-shadow);
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--cc-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--cc-gray-light);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--cc-transition);
}

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

.social-links {
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
}

/* About Page Enhancements */
.value-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--cc-light);
  border-radius: 8px;
  height: 100%;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: var(--cc-light);
  border-radius: 8px;
  margin: 2rem 0;
}

/* Footer Styles */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  text-align: left;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .trust-metrics {
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .pricing-card.featured {
    transform: none;
  }
}