/* Modern Office 365 Versions Site Styles */
:root {
  /* Color Palette - Modern Microsoft-inspired colors */
  --primary-color: #0078d4;
  --primary-dark: #106ebe;
  --primary-light: #40e0d0;
  --secondary-color: #5c2d91;
  --accent-color: #00bcf2;
  --success-color: #107c10;
  --warning-color: #ff8c00;
  --danger-color: #d83b01;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #faf9f8;
  --gray-100: #f3f2f1;
  --gray-200: #edebe9;
  --gray-300: #e1dfdd;
  --gray-400: #d2d0ce;
  --gray-500: #b3b0ad;
  --gray-600: #979593;
  --gray-700: #605e5c;
  --gray-800: #323130;
  --gray-900: #201f1e;
  
  /* Typography */
  --font-family-primary: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-mono: 'Cascadia Code', 'Consolas', 'Monaco', monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Layout Container */
.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Modern Navigation */
.modern-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.modern-navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand-modern {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.navbar-brand-modern:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #ffffff, #e0f2ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-xl);
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--spacing-2xl) 0;
}

/* Modern Cards */
.modern-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--gray-100);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

/* Modern Table Styles */
.modern-table-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.modern-table thead {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.modern-table th {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
}

.modern-table td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.modern-table tbody tr {
  transition: var(--transition-fast);
}

.modern-table tbody tr:hover {
  background: var(--gray-50);
}

/* Channel Tags */
.channel-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.channel-tag.current {
  background: rgba(16, 124, 16, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 124, 16, 0.2);
}

.channel-tag.monthly {
  background: rgba(0, 120, 212, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(0, 120, 212, 0.2);
}

.channel-tag.semiannual {
  background: rgba(92, 45, 145, 0.1);
  color: var(--secondary-color);
  border: 1px solid rgba(92, 45, 145, 0.2);
}

/* Modern Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

/* Modern Alert */
.modern-alert {
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.modern-alert.alert-info {
  background: rgba(0, 120, 212, 0.05);
  border-color: rgba(0, 120, 212, 0.2);
  color: var(--primary-dark);
}

.modern-alert.alert-warning {
  background: rgba(255, 140, 0, 0.05);
  border-color: rgba(255, 140, 0, 0.2);
  color: #cc5500;
}

.alert-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-info .alert-icon {
  background: var(--primary-color);
  color: white;
}

.alert-warning .alert-icon {
  background: var(--warning-color);
  color: white;
}

/* Footer */
.modern-footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: var(--spacing-xl) 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Privacy Policy Page Styles */
.privacy-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl) var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.privacy-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.1;
}

.privacy-header h1 {
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.privacy-header-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 2rem;
}

.privacy-last-updated {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  margin-top: var(--spacing-md);
}

.privacy-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.privacy-section {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
}

.privacy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.privacy-section h2 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  font-size: 1.5rem;
}

.privacy-section p {
  margin-bottom: var(--spacing-md);
}

.privacy-section ul {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

.privacy-section li {
  margin-bottom: var(--spacing-sm);
}

.privacy-section strong {
  color: var(--gray-800);
}

.privacy-contact-box {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border-left: 4px solid var(--primary-color);
  margin-top: var(--spacing-lg);
}

.privacy-contact-box ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.privacy-contact-box li {
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.privacy-contact-box li i {
  color: var(--primary-color);
}

.privacy-contact-box a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.privacy-contact-box a:hover {
  text-decoration: underline;
}

.privacy-toc {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.privacy-toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  column-count: 2;
}

.privacy-toc li {
  margin-bottom: var(--spacing-sm);
}

.privacy-toc a {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.privacy-toc a:hover {
  text-decoration: underline;
}

.privacy-toc-title {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--gray-800);
  font-weight: 600;
}

@media (max-width: 768px) {
  .privacy-toc ul {
    column-count: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-stats {
    gap: var(--spacing-md);
  }
  
  .stat-item {
    min-width: 100px;
  }
  
  .modern-card {
    padding: var(--spacing-lg);
  }
  
  .modern-table-container {
    overflow-x: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* DataTables Modern Styling */
.dataTables_wrapper {
  font-family: var(--font-family-primary);
}

.dataTables_filter input {
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-left: var(--spacing-sm);
}

.dataTables_length select {
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  padding: var(--spacing-xs) var(--spacing-sm);
  margin: 0 var(--spacing-sm);
}

.dataTables_paginate .paginate_button {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--gray-300) !important;
  margin: 0 2px !important;
  padding: var(--spacing-xs) var(--spacing-sm) !important;
}

.dataTables_paginate .paginate_button.current {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--gray-600); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-md { gap: var(--spacing-md); }