/* Dashboard de Notícias Hubceara - Estilos Principais */

:root {
  --primary-color: #0072bc; /* Azul do logo Hubceara */
  --accent-color: #a3e635; /* Verde do logo Hubceara */
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --gray-color: #e9ecef;
  --border-color: #dee2e6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
  min-height: 100vh;
}

/* Login Page */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: var(--light-color);
}

.login-logo {
  width: 150px;
  margin-bottom: 2rem;
}

.login-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: #005a93;
}

.btn-block {
  display: block;
  width: 100%;
}

.error-message {
  color: #dc3545;
  margin-top: 1rem;
  text-align: center;
}

/* Dashboard */
.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-header {
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-logo {
  height: 40px;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-info span {
  margin-right: 1rem;
}

.logout-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
}

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

.dashboard-content {
  flex: 1;
  padding: 2rem;
}

.columns-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.column {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.column-header {
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-title {
  font-weight: 500;
  font-size: 1.1rem;
}

.settings-icon {
  cursor: pointer;
  transition: var(--transition);
}

.settings-icon:hover {
  transform: rotate(45deg);
}

.column-content {
  padding: 1rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.news-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.news-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.news-source {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.news-description {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-weight: 500;
  font-size: 1.1rem;
}

.close-modal {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

.rss-form {
  display: flex;
  flex-direction: column;
}

.rss-inputs {
  margin-bottom: 1rem;
}

.rss-input-group {
  display: flex;
  margin-bottom: 0.75rem;
}

.rss-input-group input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.rss-input-group button {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 0.75rem;
  cursor: pointer;
}

.add-rss-btn {
  background-color: var(--accent-color);
  color: var(--dark-color);
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.add-rss-btn:hover {
  background-color: #86c232;
}

.modal-footer {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
}

/* Responsividade */
@media (max-width: 768px) {
  .columns-container {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    padding: 1rem;
  }
  
  .dashboard-logo {
    margin-bottom: 1rem;
  }
  
  .dashboard-content {
    padding: 1rem;
  }
}
