/* ===== Reset Básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Variáveis de Cor ===== */
:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --dark: #1b263b;
  --light: #f8f9fa;
  --success: #4cc9f0;
  --danger: #f72585;
  --warning: #f8961e;
}

/* ===== Estrutura Principal ===== */
body {
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Dashboard Layout ===== */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--dark);
  color: white;
  padding: 20px 0;
}

.main-content-wrapper {
    width: 100%;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.main-content-row {
    display: flex;
    flex: 1;
    min-width: 0;
}

.main-content {
    margin-left: 250px; /* Same as sidebar width */
    min-height: 100vh;
    padding-bottom: 70px; /* Altura do footer */
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

/* Sponsor sidebar - lado direito, altura total */
.sponsor-sidebar {
    flex-shrink: 0;
    width: 220px;
    padding: 16px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sponsor-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sponsor-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.sponsor-link:hover {
    opacity: 0.95;
}

.sponsor-link.sponsor-no-link {
    cursor: default;
}

.sponsor-image {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.sponsor-cta {
    position: absolute;
    bottom: 48px;
    left: 12px;
    right: 12px;
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: white !important;
    background: var(--primary) !important;
    border: none;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sponsor-link:hover .sponsor-cta {
    background: var(--secondary) !important;
    transform: translateY(-2px);
}

/* Responsivo: main-content e sponsor se ajustam */
@media (max-width: 1200px) {
    .sponsor-sidebar {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .sponsor-sidebar {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .main-content-wrapper {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.card-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* ===== Botões ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary);
}

/* ===== Tabelas ===== */
.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table th {
  background: var(--light);
  font-weight: 600;
}

/* ===== Formulários ===== */
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* ===== Responsividade ===== */
@media (max-width: 767.98px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  /* Sidebar agora é off-canvas, não precisa esconder */
  /* Mantido para compatibilidade com outros estilos */
}

@font-face {
    font-family: 'TimeBurner';
    src: url('../fonts/Timeburner-xJB8.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TimeBurner';
    src: url('../fonts/TimeburnerBold-peGR.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/Exo2-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
