/* App Styles - Mobile First Design */

:root {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --accent-color: #2563eb;
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --border-radius-small: 8px;
  --bottom-nav-height: 80px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  padding-bottom: var(--bottom-nav-height);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header do App */
.app-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
}

.app-logo img {
  filter: brightness(0) invert(1);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

/* Main Content */
.app-main {
  padding: 0;
  min-height: calc(100vh - var(--bottom-nav-height) - 60px);
}

.container-fluid {
  padding: 0 16px;
}

/* Welcome Section */
.welcome-section {
  padding: 24px 0;
}

.welcome-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 32px 24px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Section Titles */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Quick Actions */
.quick-actions {
  padding: 0 0 32px 0;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
  color: var(--text-primary);
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 24px;
  color: white;
}

.action-icon.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.action-icon.bg-info {
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
}

.action-text {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* Services Section */
.services-section {
  padding-bottom: 32px;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--text-primary);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--border-radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-right: 16px;
  flex-shrink: 0;
}

.service-content {
  flex: 1;
}

.service-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.service-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.service-arrow {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Recent Status */
.recent-status {
  padding-bottom: 32px;
}

.status-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.status-info {
  flex: 1;
}

.status-id {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.status-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.status-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.badge-em-analise {
  background: #dbeafe;
  color: #1e40af;
}

.badge-concluida {
  background: #dcfce7;
  color: #166534;
}

.badge-pendente {
  background: #fef3c7;
  color: #d97706;
}

.badge-urgente {
  background: #fee2e2;
  color: #dc2626;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  height: var(--bottom-nav-height);
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: var(--border-radius-small);
  min-width: 60px;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 11px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--primary-color);
  background: rgba(30, 58, 138, 0.1);
}

.nav-item:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (min-width: 576px) {
  .container-fluid {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .welcome-card {
    padding: 40px 32px;
  }

  .welcome-title {
    font-size: 32px;
  }

  .welcome-subtitle {
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .action-card {
    padding: 32px 24px;
  }

  .action-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .action-text {
    font-size: 16px;
  }

  .service-card {
    padding: 24px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background: var(--primary-color) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-section,
.quick-actions,
.services-section,
.recent-status {
  animation: fadeInUp 0.6s ease-out;
}

.quick-actions {
  animation-delay: 0.1s;
}

.services-section {
  animation-delay: 0.2s;
}

.recent-status {
  animation-delay: 0.3s;
}
