/* Estilos principais - consolidados (sem @import) */

/* ========== ESTILOS GLOBAIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
    color: #333;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ========== LOGIN.CSS ========== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card,
.login-box {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login-header h1 {
  color: #333;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-header p {
  color: #666;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.form-group select,
.contract-select {
  padding: 16px 52px 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background-color: #ffffff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2306b6d4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  animation: fadeInSelect 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 56px;
  width: 100%;
}

@keyframes fadeInSelect {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-group select:hover,
.contract-select:hover {
  border-color: #06b6d4;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2), 0 2px 4px rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  background-color: #fafafa;
}

.form-group select:focus,
.contract-select:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15), 0 6px 16px rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
  background-color: #ffffff;
}

.form-group select:active,
.contract-select:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.form-group select:disabled,
.contract-select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
  border-color: #e0e0e0;
}

.contract-select option {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: #333;
  background-color: #ffffff;
  border-radius: 8px;
  margin: 4px 0;
}

.contract-select option:hover {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.1) 0%, rgba(132, 204, 22, 0.1) 100%);
  color: #06b6d4;
}

.contract-select option:checked {
  background: linear-gradient(90deg, #06b6d4 0%, #84cc16 100%);
  color: white;
  font-weight: 600;
}

.error-message {
  background-color: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #fcc;
}

.login-button {
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.back-button {
  flex: 1;
  padding: 14px 24px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-button:hover:not(:disabled) {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.back-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contracts-selection {
  width: 100%;
}

.contracts-selection h2 {
  margin-bottom: 8px;
  color: #2c3e50;
}

.contracts-selection p {
  margin-bottom: 24px;
  color: #7f8c8d;
}

.contracts-list-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.contract-card-login {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contract-card-login:hover {
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.contract-card-login .contract-info {
  flex: 1;
}

.contract-card-login .contract-info h3 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 18px;
}

.contract-card-login .contract-number {
  margin: 0 0 12px 0;
  color: #7f8c8d;
  font-size: 14px;
}

.contract-card-login .contract-details {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.status-ativo {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.status-cancelado {
  background-color: #f8d7da;
  color: #721c24;
}

.contract-date {
  color: #7f8c8d;
  font-size: 13px;
}

.contract-arrow {
  font-size: 24px;
  color: #3498db;
  font-weight: bold;
}

/* ========== DASHBOARD.CSS ========== */
.dashboard-container {
  min-height: 100vh;
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  padding: 20px;
}

.dashboard-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  background: white;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-title h1 {
  color: #333;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contract-info-header {
  color: #666;
  font-size: 14px;
}

.contract-highlight-card {
  max-width: 1200px;
  margin: 0 auto 32px;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.contract-highlight-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contract-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.contract-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  border-radius: 12px;
  color: white;
  margin-bottom: 4px;
}

.contract-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.contract-label {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contract-value {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contract-info-divider {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, #e0e0e0 20%, #e0e0e0 80%, transparent 100%);
  flex-shrink: 0;
}

.logout-button-header {
  background: #f5f5f5;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-button-header:hover {
  background: #e0e0e0;
}

.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.menu-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
  border-color: #06b6d4;
}

.menu-icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.menu-icon svg {
  width: 100%;
  height: 100%;
}

.invoice-icon {
  color: #1e40af;
}

.support-icon {
  color: #06b6d4;
}

.tv-icon {
  color: #84cc16;
}

.menu-card h2 {
  color: #333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.menu-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
  font-size: 18px;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logout-button-header {
    width: 100%;
  }

  .contract-highlight-card {
    padding: 24px;
  }

  .contract-highlight-content {
    gap: 24px;
  }

  .contract-info-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 20%, #e0e0e0 80%, transparent 100%);
  }

  .contract-value {
    font-size: 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== INVOICE.CSS ========== */
.invoice-container {
  min-height: 100vh;
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  padding: 20px;
}

.invoice-header {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.invoice-header h1 {
  color: white;
  font-size: 32px;
  font-weight: 700;
}

.invoices-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoice-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.invoice-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  border-radius: 12px;
  color: white;
  padding: 8px;
}

.invoice-icon svg {
  width: 100%;
  height: 100%;
}

.invoice-info {
  flex: 1;
  min-width: 200px;
}

.invoice-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.invoice-header-card h3 {
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.status-paid {
  background-color: #d4edda;
  color: #155724;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-overdue {
  background-color: #f8d7da;
  color: #721c24;
}

.invoice-details {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invoice-demonstrativo {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.invoice-demonstrativo .detail-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.demonstrativo-content {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.detail-label {
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.download-button {
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.invoice-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.pix-button {
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 180px;
}

.pix-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.pix-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pix-loading {
  display: inline-block;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0.5;
  }
}

.pix-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.pix-modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pix-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.pix-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.pix-modal h2 {
  color: #333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.pix-code-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pix-code {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  word-break: break-all;
  color: #333;
  text-align: center;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
}

.copy-pix-button {
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.copy-pix-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.copied-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  animation: popupFadeIn 0.3s ease;
}

.copied-popup-content {
  background: white;
  border-radius: 12px;
  padding: 24px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
}

.copied-popup-content p {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.copied-popup-info {
  font-size: 14px;
  color: #666;
  font-weight: normal;
  line-height: 1.5;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .invoice-card {
    flex-direction: column;
    align-items: stretch;
  }

  .download-button {
    width: 100%;
  }

  .invoice-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== SUPPORTREQUEST.CSS ========== */
.support-container {
  min-height: 100vh;
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  padding: 20px;
}

.support-header {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.support-header h1 {
  color: white;
  font-size: 32px;
  font-weight: 700;
}

.support-actions {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: flex-end;
}

.new-request-button {
  background: white;
  color: #06b6d4;
  border: 2px solid #06b6d4;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.new-request-button:hover {
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.support-form-card {
  max-width: 1200px;
  margin: 0 auto 32px;
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.support-form-card h2 {
  color: #333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.support-form-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  min-width: 200px;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.requests-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.request-header h3 {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  flex: 1;
}

.status-open {
  background-color: #cfe2ff;
  color: #084298;
}

.status-in_progress {
  background-color: #fff3cd;
  color: #856404;
}

.status-resolved {
  background-color: #d4edda;
  color: #155724;
}

.request-description {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.request-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.request-date {
  color: #999;
  font-size: 14px;
}

.empty-hint {
  font-size: 14px !important;
  color: #999 !important;
}

@media (max-width: 768px) {
  .support-actions {
    justify-content: stretch;
  }

  .new-request-button {
    width: 100%;
  }

  .request-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .submit-button {
    width: 100%;
  }
}

/* ========== TV.CSS ========== */
.tv-content {
  max-width: 1200px;
  margin: 0 auto;
}

.tv-error-message {
  max-width: 1200px;
  margin: 0 auto 24px;
  background: #fee;
  color: #c33;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #fcc;
}

.tv-info-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.tv-info-header {
  margin-bottom: 32px;
  text-align: center;
}

.tv-info-header h2 {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tv-info-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tv-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-info-label {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tv-info-value {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  word-break: break-all;
}

.tv-info-with-button {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tv-info-with-button .tv-info-value {
  flex: 1;
  min-width: 200px;
}

.tv-copy-button {
  background: linear-gradient(90deg, #1e40af 0%, #06b6d4 50%, #84cc16 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tv-copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.tv-status-ativo,
.tv-status-ativa {
  color: #155724;
}

.tv-status-inativo,
.tv-status-inativa,
.tv-status-cancelado,
.tv-status-cancelada {
  color: #721c24;
}

.tv-status-pendente {
  color: #856404;
}

.tv-empty-card {
  background: white;
  border-radius: 16px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tv-empty-card p {
  color: #666;
  font-size: 18px;
}

.tv-copied-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  animation: tvPopupFadeIn 0.3s ease;
}

.tv-copied-popup-content {
  background: white;
  border-radius: 12px;
  padding: 24px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 200px;
}

.tv-copied-popup-content p {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

@keyframes tvPopupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .tv-info-card {
    padding: 24px;
  }

  .tv-info-with-button {
    flex-direction: column;
    align-items: stretch;
  }

  .tv-copy-button {
    width: 100%;
  }
}

/* ========== CONTRACTSELECTION.CSS ========== */
.contract-selection-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.contract-selection-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 600px;
  animation: fadeIn 0.5s ease-in;
}

.contract-selection-header {
  text-align: center;
  margin-bottom: 32px;
}

.contract-selection-header h1 {
  color: #333;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contract-selection-header p {
  color: #666;
  font-size: 14px;
}

.contracts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contract-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contract-card:hover {
  border-color: #06b6d4;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.contract-info {
  flex: 1;
}

.contract-info h3 {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contract-number {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.status-ativo,
.status-active {
  background-color: #d4edda;
  color: #155724;
}

.status-inativo,
.status-inactive {
  background-color: #f8d7da;
  color: #721c24;
}

.status-suspenso,
.status-suspended {
  background-color: #fff3cd;
  color: #856404;
}

.error-card {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.error-card h2 {
  color: #c33;
  margin-bottom: 16px;
}

.error-card p {
  color: #666;
  margin-bottom: 24px;
}

.logout-button {
  width: 100%;
  background: #f5f5f5;
  color: #333;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-button:hover {
  background: #e0e0e0;
}

/* ========== UTILITÁRIOS ========== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.empty-state p {
  margin: 0.5rem 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Popup */
.popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4caf50;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}
