/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.logo p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
  padding: 0.5rem 1rem;
}

.nav-menu a:hover {
  opacity: 0.8;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: #f5f5f5;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Main Content */
main {
  min-height: calc(100vh - 300px);
}

.main-content {
  padding: 40px 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #5568d3;
}

.btn-primary {
  background: #4CAF50;
}

.btn-primary:hover {
  background: #45a049;
}

.btn-outline {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.badge-licitacao {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-contrato {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-publicacao {
  background: #fff3e0;
  color: #f57c00;
}

.badge-em-andamento {
  background: #fff3e0;
  color: #f57c00;
}

/* Alerts */
.alert {
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.alert.info {
  background: #e3f2fd;
  border-left: 4px solid #2196F3;
  color: #0d47a1;
}

.alert.success {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #1b5e20;
}

.alert.warning {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  color: #e65100;
}

.alert.error {
  background: #ffebee;
  border-left: 4px solid #f44336;
  color: #c62828;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #3498db;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin: 10px 0;
}

.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    display: none;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Sections */
section {
  margin: 40px 0;
}

section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
}

/* Content Sections */
.content-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 30px 0;
}

/* Filters */
.filters {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.filter-form input,
.filter-form select,
.filter-form button {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.filter-form button {
  background: #667eea;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-form button:hover {
  background: #5568d3;
}

/* Results */
.results {
  margin-top: 30px;
}

/* Export Section */
.export-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  margin: 40px 0;
}

.export-section h3 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.export-section .btn {
  margin: 0 10px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
