﻿/* ==========================================================================
   Design System & Tokens Sherwin Williams Workshop Facilities 2026
   ========================================================================== */
:root {
  /* Cores Oficiais */
  --primary-dark: #001B2E;
  --primary-red: #DC0E00;
  --secondary-blue: #0067B1;
  --white: #FFFFFF;

  /* Neutros e Backgrounds */
  --bg-color: var(--primary-dark);
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.1);

  /* Textos */
  --text-primary: var(--white);
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-tertiary: rgba(255, 255, 255, 0.6);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Espaçamentos e Layout */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Fontes */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* Animações */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;

  /* Nav Bottom */
  --nav-height: 64px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-color);
  color: var(--text-primary);
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Textura Overlay Global */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('./assets/backgrounds/background-overlay.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

/* Telas Específicas Login */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--primary-dark);
  padding: 0;
}

.login-card {
  flex: 1;
  width: 100%;
  max-width: none !important;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none !important;
}

.login-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.login-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.login-logo-container img {
  height: 50px;
  object-fit: contain;
}

.field-group {
  margin-bottom: var(--spacing-lg);
}

.field-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-with-icon {
  position: relative;
}

.field-with-icon input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 16px 16px 48px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.field-with-icon input:focus {
  border-color: var(--secondary-blue);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 103, 177, 0.2);
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
}

.field-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  width: 20px;
  height: 20px;
}

.password-toggle svg.icon-hide {
  display: none;
}

.password-visible .password-toggle svg.icon-hide {
  display: block;
  fill: currentColor;
}

.password-visible .password-toggle svg.icon-show {
  display: none;
}

.password-toggle svg.icon-show {
  fill: currentColor;
}

.field-error {
  color: var(--primary-red);
  font-size: 0.75rem;
  margin-top: 4px;
  min-height: 14px;
}

.helper-text {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.link-button {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--secondary-blue);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: var(--spacing-md);
}

.login-footer {
  text-align: center;
  margin-top: var(--spacing-xl);
  color: var(--text-tertiary);
}

/* ==========================================================================
   Shell & Layout Principal (App Interno)
   ========================================================================== */
.app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: env(safe-area-inset-top, 0px);
}

.content-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + var(--safe-area-bottom) + var(--spacing-xl));
  -webkit-overflow-scrolling: touch;
}

/* Seções */
.home-section {
  display: none;
  animation: fadeIn var(--transition-normal);
  padding: 0 var(--spacing-md);
}

.home-section.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Global App */
.home-header {
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 27, 46, 0.95) 0%, rgba(0, 27, 46, 0.8) 80%, rgba(0, 27, 46, 0) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--spacing-md);
}

.home-logo-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.home-logo {
  height: 48px;
  object-fit: contain;
}

/* ==========================================================================*/
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: 18px;
  background-color: var(--primary-red) !important;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  text-decoration: none;
  margin-top: var(--spacing-md);
}

.primary-button:active {
  background-color: #A30A00 !important;
}

.primary-button.loading .button-label {
  opacity: 0;
}

.primary-button.loading .button-spinner {
  display: block;
}

.button-spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Home Aba
   ========================================================================== */
.action-cards-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.action-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  text-decoration: none;
  color: var(--white);
  transition: transform var(--transition-fast), background var(--transition-fast);
  text-align: left;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-card:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.15);
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 103, 177, 0.2);
  color: #66B2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.action-icon i {
  width: 20px;
  height: 20px;
}

.action-card.red .action-icon {
  background: rgba(220, 14, 0, 0.2);
  color: #FF6B60;
}

.action-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.action-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.action-arrow {
  margin-left: auto;
  color: var(--text-tertiary);
  width: 18px;
  height: 18px;
}

/* Next Sessions Block */
.highlight-block {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.highlight-block h2 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

/* ==========================================================================
   Agenda
   ========================================================================== */
.day-tabs {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-pill {
  padding: 10px 20px;
  background: var(--surface-color);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.day-pill.is-active {
  background: var(--secondary-blue);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.session-card {
  background-color: var(--surface-card);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.session-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background-color: var(--secondary-blue);
}

.session-time {
  width: 55px;
  flex-shrink: 0;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.time-main {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  display: block;
}

.time-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  display: block;
  line-height: 1;
}

.session-details {
  flex: 1;
}

.session-title {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
  margin-top: 0;
}

.session-meta {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--white);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.session-meta svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  opacity: 0.6;
}



/* ==========================================================================
   Networking
   ========================================================================== */
.search-input-wrapper {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  width: 20px;
  height: 20px;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 14px 16px 14px 44px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--secondary-blue);
}

.networking-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.participant-card {
  display: flex;
  align-items: center;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.participant-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--secondary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
  overflow: hidden;
}

.participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-info {
  flex: 1;
  min-width: 0;
}

.participant-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-role {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.participant-location i {
  width: 12px;
  height: 12px;
}

.participant-email {
  margin-top: var(--spacing-xs);
  font-size: 0.8125rem;
  color: var(--secondary-blue);
  word-break: break-all;
}

/* ==========================================================================
   Materiais (Google Drive)
   ========================================================================== */
.materials-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.materials-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: var(--spacing-lg);
}

.materials-icon svg {
  width: 40px;
  height: 40px;
}

.materials-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.materials-desc {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--spacing-xl);
  font-size: 1rem;
}

/* ==========================================================================
   Bottom Navigation
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-area-bottom));
  background: rgba(0, 27, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--safe-area-bottom);
  z-index: 50;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  padding: 8px 0;
}

.bottom-nav-icon {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon i {
  width: 24px;
  height: 24px;
}

.bottom-nav-label {
  font-size: 0.6875rem;
  font-weight: 500;
}

.bottom-nav-item.is-active,
.bottom-nav-item:active {
  color: var(--primary-red);
}