/* ===================================
   EasyUptime - Modern Theme
   ================================== */

/* Base Theme Variables */
:root.theme-modern {
  /* Primary Colors */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-color: #667eea;
  --primary-light: #764ba2;
  --primary-alpha: rgba(102, 126, 234, 0.1);
  
  /* Background Colors */
  --body-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --surface-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.95);
  --sidebar-bg: rgba(248, 250, 252, 0.8);
  
  /* Text Colors */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: rgba(255, 255, 255, 0.9);
  
  /* Border Colors */
  --border-color: #e2e8f0;
  --border-light: rgba(226, 232, 240, 0.5);
  
  /* Status Colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Spacing */
  --content-padding: 2rem;
  --card-padding: 2.5rem 2rem;
  --nav-padding: 1rem 1.5rem;
  
  /* Effects */
  --blur-effect: blur(10px);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.08);
  --border-radius: 20px;
  --border-radius-small: 12px;
}

/* Body and Base Styles */
.theme-modern body {
  background: var(--body-bg);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

/* Navigation Styles */
.theme-modern .modern-navbar {
  background: var(--surface-bg);
  backdrop-filter: var(--blur-effect);
  border: none;
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
  margin-bottom: 0;
}

.theme-modern .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
}

.theme-modern .navbar-brand:hover {
  background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-modern .navbar-brand i {
  color: var(--primary-color);
  animation: pulse 2s infinite;
}

.theme-modern .modern-nav-link {
  color: var(--text-secondary) !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
  text-decoration: none;
}

.theme-modern .modern-nav-link:hover,
.theme-modern .modern-nav-link.active {
  background: var(--primary-gradient);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* User Avatar */
.theme-modern .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-modern .user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Page Container */
.theme-modern .page-container {
  background: var(--surface-bg);
  backdrop-filter: var(--blur-effect);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: 2rem 2rem 0 2rem;
  padding: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: calc(100vh - 200px);
  position: relative;
}

.theme-modern .page-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 1;
}

/* Identity Layout */
.theme-modern .identity-layout {
  background: transparent;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: auto;
}

.theme-modern .identity-layout::before {
  display: none;
}

.theme-modern .manage-wrapper {
  background: var(--surface-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  margin: 2rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.theme-modern .manage-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 1;
}

/* Manage Content */
.theme-modern .manage-content {
  padding: var(--content-padding);
  background: white;
}

.theme-modern .manage-content-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Content Headers */
.theme-modern .content-header {
  background: var(--primary-gradient);
  color: white;
  padding: var(--card-padding);
  display: flex;
  align-items: center;
  position: relative;
}

.theme-modern .content-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.theme-modern .header-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.theme-modern .header-text {
  position: relative;
  z-index: 1;
}

.theme-modern .header-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.theme-modern .header-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Forms */
.theme-modern .modern-input,
.theme-modern .modern-select,
.theme-modern .modern-textarea {
  border-radius: var(--border-radius-small);
  border: 2px solid var(--border-color);
  padding: 1.25rem 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.theme-modern .modern-input:focus,
.theme-modern .modern-select:focus,
.theme-modern .modern-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-alpha);
  background: white;
  transform: translateY(-1px);
}

.theme-modern .modern-btn {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--border-radius-small);
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: white;
}

.theme-modern .modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Alerts */
.theme-modern .alert-modern {
  border: none;
  border-radius: 15px;
  margin: 1rem;
  backdrop-filter: var(--blur-effect);
}

.theme-modern .alert-success.alert-modern {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--success-color);
  color: #065f46;
}

.theme-modern .alert-danger.alert-modern {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger-color);
  color: #991b1b;
}

.theme-modern .alert-info.alert-modern {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--info-color);
  color: #1e40af;
}

/* Uptime History Bars */
.theme-modern .uptime-bar {
  height: 20px;
  min-width: 2px;
  max-width: 20px;
  flex: 1 1 auto;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: #e5e7eb !important;
}

.theme-modern .uptime-bar:hover {
  transform: scaleY(1.2);
  filter: brightness(1.1);
}

.theme-modern .uptime-bar.uptime-up {
  background-color: var(--success-color) !important;
}

.theme-modern .uptime-bar.uptime-warning {
  background-color: var(--warning-color) !important;
}

.theme-modern .uptime-bar.uptime-down {
  background-color: var(--danger-color) !important;
}

/* Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .theme-modern .page-container {
    margin: 1rem 1rem 0 1rem;
    border-radius: 15px 15px 0 0;
  }
  
  .theme-modern .modern-nav-link {
    padding: 0.5rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .theme-modern .manage-wrapper {
    margin: 1rem;
  }
  
  .theme-modern .manage-content {
    padding: 1rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .theme-modern .page-container {
    margin: 1.5rem 1.5rem 0 1.5rem;
  }
} 