 /* Modern TechCloud CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Modern Color Scheme */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #4facfe;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --text-muted: #8e9aaf;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
  
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.min-vh-100 {
  min-height: 100vh;
}

/* Modern Navigation */
.modern-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  transition: var(--transition);
}

.modern-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-dark) !important;
}

.navbar-brand .logo {
  height: 40px;
  margin-right: 0.5rem;
}

.navbar-brand .brand-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(102, 126, 234, 0.1);
}

.btn-outline-light {
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  background: transparent;
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1.5rem !important;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: var(--primary-color);
  color: white !important;
}

.btn-primary-custom {
  background: var(--primary-gradient);
  color: white !important;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1.5rem !important;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white !important;
}

/* Ensure auth links are clickable */
.auth-links .nav-link {
  cursor: pointer;
  text-decoration: none;
}

.auth-links .nav-link:hover {
  text-decoration: none;
  padding: 0.5rem 1.5rem !important;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Logo Responsive Sizing */
.navbar-brand .logo {
  height: 40px;
  margin-right: 0.5rem;
}

/* Logo sizing for different page contexts */
.navbar-brand img {
  height: 40px;
  width: auto;
  max-width: 180px;
}

/* Modern navbar logo */
.modern-nav .navbar-brand .logo {
  height: 40px;
}

/* Legacy navbar logo (login/registration pages) */
header .navbar-brand img {
  height: 35px;
  width: auto;
  max-width: 150px;
  position: relative;
  top: 0;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .navbar-brand .logo,
  .navbar-brand img,
  header .navbar-brand img {
    height: 30px;
    max-width: 120px;
  }
}

@media (max-width: 576px) {
  .navbar-brand .logo,
  .navbar-brand img,
  header .navbar-brand img {
    height: 25px;
    max-width: 100px;
  }
}

/* Hero Section */
.hero-modern {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  overflow: hidden;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 4rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: var(--primary-color) !important;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-primary-gradient:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--secondary-color) !important;
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white !important;
  background: transparent;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  color: white;
  text-align: center;
  animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.floating-card span {
  font-weight: 500;
  font-size: 0.9rem;
}

.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 10%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

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

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services-modern {
  background: var(--light-bg);
}

.service-card-modern {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.service-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.service-card-modern h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card-modern p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--secondary-color);
}

/* Applications Section */
.apps-showcase {
  background: white;
}

.app-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  margin-bottom: 2rem;
}

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

.app-preview {
  height: 250px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-mockup {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 2rem;
  color: white;
  text-align: center;
}

.portfolio-mockup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.health-mockup {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.qr-mockup {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.app-info {
  padding: 2rem;
}

.app-info h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.app-info p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.launch-btn {
  background: var(--primary-gradient);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white !important;
}

/* About Section */
.about-modern {
  background: var(--light-bg);
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.feature-item span {
  color: var(--text-dark);
  font-weight: 500;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 300px;
}

.tech-item {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact-modern {
  background: white;
}

.contact-form-wrapper {
  background: var(--light-bg);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form .form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  outline: none;
}

/* Footer */
.footer-modern {
  background: var(--dark-gradient);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-modern h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0 1rem;
}

/* Launch App Button Styles */
.launch-btn {
  background: var(--primary-gradient);
  color: white !important;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.launch-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white !important;
}

.launch-btn:focus,
.launch-btn:active {
  color: white !important;
  outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-stats {
    justify-content: space-between;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .floating-card {
    position: static;
    margin: 1rem;
    animation: none;
  }
  
  .hero-visual {
    height: auto;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .hero-content {
    padding: 6rem 0 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-card-modern,
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-content {
    padding: 5rem 0 2rem;
  }
}

/* Portfolio Dashboard Styles */
.portfolio-dashboard {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.sidebar {
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    min-height: calc(100vh - 80px);
    padding: 0;
}

.sidebar-content {
    padding: 2rem 1.5rem;
}

.app-header h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-summary, .health-summary {
    margin: 2rem 0;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.summary-card h4 {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.value-display {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.change.positive {
    color: #4facfe;
}

.change.negative {
    color: #f5576c;
}

.quick-actions {
    margin: 2rem 0;
}

.quick-actions h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.main-content {
    padding: 2rem;
    background: transparent;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h3 {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.chart-card h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.holdings-section, .readings-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h5 {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.search-box input {
    max-width: 250px;
}

.holdings-table th {
    border-top: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.holdings-table td {
    vertical-align: middle;
}

.positive {
    color: #28a745 !important;
}

.negative {
    color: #dc3545 !important;
}

/* Health Dashboard Styles */
.health-dashboard {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffeef8 0%, #e6f3ff 100%);
}

.status-indicator {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.status-indicator.good {
    color: #4facfe;
}

.status-indicator i {
    margin-right: 0.5rem;
}

.last-reading {
    font-size: 0.9rem;
}

.health-goals {
    margin-top: 2rem;
}

.health-goals h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.goal-item {
    margin-bottom: 1rem;
}

.goal-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.goal-item .progress {
    height: 8px;
    background-color: rgba(0,0,0,0.1);
}

.goal-item .progress-bar {
    font-size: 0.7rem;
    line-height: 8px;
}

.vital-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.vital-card:hover {
    transform: translateY(-2px);
}

.vital-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.vital-card.blood-sugar .vital-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.vital-card.blood-pressure .vital-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vital-card.heart-rate .vital-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.vital-card.temperature .vital-icon {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.vital-info h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.vital-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.vital-value .unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6c757d;
}

.vital-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.vital-status.normal {
    background-color: #d4edda;
    color: #155724;
}

.vital-status.high {
    background-color: #f8d7da;
    color: #721c24;
}

.vital-status.low {
    background-color: #fff3cd;
    color: #856404;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-buttons .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.readings-table th {
    border-top: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.readings-table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-title {
    color: var(--text-color);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .vital-card {
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .sidebar {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .vital-card {
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* AI Chatbot Styles */
.ai-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.chatbot-toggle i {
    color: white;
    font-size: 1.5rem;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-gradient);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.chatbot-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-info .status {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
}

.chatbot-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    opacity: 0.8;
}

.chatbot-minimize:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 320px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease;
}

.message.user-message {
    flex-direction: row-reverse;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--primary-gradient);
    color: white;
}

.user-message .message-avatar {
    background: var(--accent-gradient);
    color: white;
}

.message-content {
    flex: 1;
    background: var(--light-bg);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
}

.user-message .message-content {
    background: var(--primary-gradient);
    color: white;
}

.message-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: inherit;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.message-content li {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: inherit;
}

.message-content .timestamp {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

.typing-dots {
    display: flex;
    gap: 0.2rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chatbot-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#chatbotInput {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    resize: none;
}

#chatbotInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.send-button {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.send-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

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

.chatbot-footer {
    margin-top: 0.5rem;
    text-align: center;
}

.chatbot-footer small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Error and Loading States */
.message.error .message-content {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.message.loading .message-content {
    background: var(--light-bg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ai-chatbot {
        bottom: 15px;
        right: 15px;
    }
    
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 70vh;
        bottom: 80px;
        right: -15px;
        left: 15px;
    }
    
    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }
    
    .chatbot-toggle i {
        font-size: 1.3rem;
    }
    
    .chatbot-messages {
        max-height: calc(70vh - 140px);
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        height: 80vh;
        border-radius: var(--border-radius);
    }
    
    .chatbot-messages {
        max-height: calc(80vh - 140px);
        padding: 0.75rem;
    }
    
    .chatbot-input-area {
        padding: 0.75rem;
    }
    
    .message-content {
        padding: 0.5rem 0.75rem;
    }
}