/* Global Styles */
:root {
  --mdc-theme-primary: #1a237e; /* Deep Navy Blue */
  --mdc-theme-secondary: #00bcd4; /* Bright Teal */
  --mdc-theme-background: #fafafa; /* Light Cream */
  --mdc-theme-surface: #ffffff; /* White */
  --mdc-theme-on-primary: #ffffff; /* White text on primary */
  --mdc-theme-on-secondary: #ffffff; /* White text on secondary */
  --mdc-theme-on-surface: #1a237e; /* Navy text on surface */
  --mdc-theme-surface-variant: #f5f5f5; /* Light gray surface variant */
  --mdc-theme-on-surface-variant: #424242; /* Dark gray text on surface variant */
}

/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--mdc-theme-background);
  color: var(--mdc-theme-on-surface);
  margin: 0;
  min-height: 100vh;
}

/* Top App Bar Styles */
.mdc-top-app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--mdc-theme-primary);
  color: var(--mdc-theme-on-primary);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.mdc-top-app-bar__title {
  font-size: 1.25rem;
  font-weight: 500;
}

.main-content {
  margin-top: 64px; /* Height of the top app bar */
  padding: 16px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a237e 0%, #00bcd4 50%, #1a237e 100%);
  color: white;
  padding: 48px 16px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 24px;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 24px;
  opacity: 0.9;
}

/* Section Styles */
.section {
  margin-bottom: 48px;
}

.section h2 {
  margin-bottom: 24px;
}

.section-actions {
  margin-top: 16px;
  text-align: center;
}

/* Responsive Grid */
@media (min-width: 600px) {
  .mdc-layout-grid__cell {
    width: 100%; /* Single column on larger screens for maximum card size */
    max-width: 600px; /* Reasonable max width */
    margin: 0 auto; /* Center the cards */
  }
}

@media (max-width: 599px) {
  .mdc-layout-grid__cell {
    width: 100%; /* 1 column on mobile */
    margin-bottom: 16px;
  }
}

/* Cards */
.mdc-card {
  background-color: var(--mdc-theme-surface);
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  padding: 32px 24px; /* Increased padding for more substantial cards */
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mdc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.mdc-card .material-icons {
  font-size: 64px; /* Larger icons */
  margin-bottom: 16px;
  color: var(--mdc-theme-secondary);
}

.mdc-card h3 {
  margin: 16px 0 12px 0;
  font-size: 1.25rem; /* Larger headings */
  font-weight: 600;
}

.mdc-card p {
  font-size: 1rem; /* Slightly larger body text */
  line-height: 1.5;
  color: var(--mdc-theme-on-surface-variant);
}

.mdc-card__primary-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* AuxCloud Banner */
.auxcloud-banner {
  background: linear-gradient(135deg, #00bcd4 0%, #1a237e 50%, #00bcd4 100%);
  color: white;
  padding: 48px 24px;
  margin: 48px 0;
  border-radius: 12px;
  text-align: center;
}

.auxcloud-content {
  max-width: 800px;
  margin: 0 auto;
}

.auxcloud-text {
  margin-bottom: 32px;
}

.auxcloud-text h2 {
  margin-bottom: 16px;
  font-weight: 700;
}

.auxcloud-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.auxcloud-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.auxcloud-button {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.auxcloud-button:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 599px) {
  .auxcloud-banner {
    padding: 32px 16px;
    margin: 32px 0;
  }
  
  .auxcloud-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Section Divider */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00bcd4 20%, #1a237e 50%, #00bcd4 80%, transparent 100%);
  margin: 32px 0;
  opacity: 0.6;
}

/* Footer Styles */
footer {
  background-color: #2C2C2C;
  color: white;
  padding: 24px 16px;
  margin-top: 48px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto 24px;
}

.footer-section {
  margin-bottom: 24px;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

/* Mobile App-like Styles */
@media (max-width: 599px) {
  .mdc-top-app-bar {
    height: 56px;
  }
  
  .main-content {
    margin-top: 56px;
    padding: 8px;
  }
  
  .hero {
    padding: 32px 8px;
  }
}

/* Navigation Drawer Styles */
.mdc-drawer {
  z-index: 1000;
  width: 300px; /* Slightly wider for better proportions */
}

.mdc-drawer__content {
  background-color: var(--mdc-theme-surface);
}

.mdc-list {
  padding: 8px 0;
}

.mdc-list-item {
  color: var(--mdc-theme-on-surface);
  font-size: 1.1rem;
  font-weight: 500;
  min-height: 56px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.mdc-list-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.mdc-list-item--activated {
  background-color: rgba(26, 35, 126, 0.12);
  color: var(--mdc-theme-primary);
}

.mdc-list-item__graphic {
  color: var(--mdc-theme-on-surface-variant, #424242);
  font-size: 24px;
  margin-right: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.mdc-list-item--activated .mdc-list-item__graphic {
  color: var(--mdc-theme-primary);
}

.mdc-list-item__text {
  font-size: 1.1rem;
  flex: 1;
}

/* Responsive Design */
@media (max-width: 599px) {
  /* Force full width on mobile by overriding MDC grid constraints */
  .mdc-layout-grid__cell {
    width: 100% !important;
    margin-bottom: 16px;
    max-width: none !important;
    padding: 0 !important;
  }
  
  .mdc-card {
    width: 100% !important;
    padding: 24px 16px;
    box-sizing: border-box;
  }
  
  .mdc-top-app-bar__title {
    font-size: 1.25rem;
  }
  
  .hero {
    padding: 32px 8px;
  }
}

/* Navigation Drawer for Mobile */
.mdc-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.mdc-drawer .mdc-list-item {
  padding: 0 16px;
}

.mdc-drawer .mdc-list-item__text {
  padding-left: 32px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
