* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #E83030 0%, #1a1a1a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1400px;
  animation: fadeIn 0.5s ease-in;
}

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

.logo-container {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.form-container {
  width: 100%;
}

.form-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid #FFD432;
  max-width: 600px;
  margin: 0 auto;
}

.form-card h2 {
  color: #1a1a1a;
  margin-bottom: 35px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #2c2c2c;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.form-group input {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #E83030;
  box-shadow: 0 0 0 3px rgba(232, 48, 48, 0.1);
}

.form-group input.input-readonly {
  border: none;
  background: transparent;
  cursor: default;
}

.form-group input.input-readonly:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.form-group input::placeholder {
  color: #999;
}

.btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #E83030 0%, #c72828 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(232, 48, 48, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 48, 48, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #000000;
  color: white;
  margin-top: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: #2c2c2c;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.form-footer {
  text-align: center;
  margin-top: 24px;
  color: #666;
  font-size: 14px;
}

.form-footer a {
  color: #E83030;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.form-footer a:hover {
  color: #c72828;
  text-decoration: underline;
}

.mensagem {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  text-align: center;
  display: none;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

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

.mensagem.sucesso {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

.mensagem.erro {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

/* Página do Sócio */
.dashboard {
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
  border: 2px solid #FFD432;
  max-width: 1200px;
  margin: 20px auto 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h2 {
  color: #1a1a1a;
  font-size: 26px;
  font-weight: 700;
}

.numero-socio {
  background: linear-gradient(135deg, #E83030 0%, #c72828 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(232, 48, 48, 0.3);
  font-size: 16px;
}

.info-section {
  margin-bottom: 30px;
}

.info-section h3 {
  color: #E83030;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
}

.info-box {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid #FFD432;
}

.info-item {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.info-item strong {
  color: #2c2c2c;
  display: inline-block;
  min-width: 140px;
  font-weight: 700;
}

.upload-section {
  margin-top: 30px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #e0e0e0;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
  margin-bottom: 12px;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: -9999px;
}

.file-input-label {
  display: block;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  color: #2c2c2c;
}

.file-input-label:hover {
  background: #E83030;
  border-color: #E83030;
  color: white;
}

.file-name {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

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

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

/* Painel Admin */
.admin-panel {
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
  max-width: 1400px;
  width: 100%;
  border: 2px solid #FFD432;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

table th {
  background: linear-gradient(135deg, #E83030 0%, #c72828 100%);
  color: white;
  font-weight: 700;
  letter-spacing: 0.3px;
}

table tr:hover {
  background: #fff9e6;
}

.comprovativo-link {
  color: #E83030;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.comprovativo-link:hover {
  color: #c72828;
  text-decoration: underline;
}

/* Modal */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

.modal-content h2 {
  color: #E83030;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #FFD432;
  font-weight: 700;
}

.close {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 32px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: #E83030;
  background: #f8f9fa;
}

.detalhe-item {
  margin-bottom: 16px;
  padding: 14px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #FFD432;
}

.detalhe-item strong {
  color: #E83030;
  margin-bottom: 6px;
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detalhe-item span {
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 600;
}

/* Responsivo */
@media (max-width: 1024px) {
  table {
    font-size: 13px;
  }

  table th,
  table td {
    padding: 10px 6px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .container {
    max-width: 100%;
  }

  .form-card,
  .dashboard,
  .admin-panel {
    padding: 28px;
  }

  .logo {
    max-width: 200px;
  }

  table {
    font-size: 12px;
  }

  table th,
  table td {
    padding: 8px 5px;
    font-size: 12px;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 16px;
  }

  .modal-content {
    padding: 28px;
  }

  /* Ocultar colunas menos importantes em telas pequenas */
  .hide-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .form-card h2 {
    font-size: 24px;
  }

  .btn {
    padding: 13px;
    font-size: 15px;
  }

  table {
    font-size: 11px;
  }

  table th,
  table td {
    padding: 6px 4px;
  }
}

