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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0f1419;
  color: #e7e9ea;
  min-height: 100vh;
}

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

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

header h1 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #1d9bf0, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  gap: 10px;
}

.nav-btn {
  padding: 10px 20px;
  border: none;
  background: #2f3336;
  color: #e7e9ea;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: #3f4448;
}

.nav-btn.active {
  background: #1d9bf0;
  color: white;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* News Styles */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #2f3336;
  background: transparent;
  color: #e7e9ea;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #1d9bf0;
}

.filter-btn.active {
  background: #1d9bf0;
  border-color: #1d9bf0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: #16181c;
  border: 1px solid #2f3336;
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.2s;
}

.news-card:hover {
  border-color: #1d9bf0;
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.news-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.news-type.geopolitics {
  background: #1d4ed8;
}

.news-type.ethrex {
  background: #7c3aed;
}

.news-date {
  color: #71767b;
  font-size: 0.9rem;
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #e7e9ea;
}

.news-content {
  color: #a1a5aa;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Tasks Styles */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.task-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .task-columns {
    grid-template-columns: 1fr;
  }
}

.task-column {
  background: #16181c;
  border-radius: 16px;
  padding: 20px;
  min-height: 400px;
}

.task-column h3 {
  margin-bottom: 15px;
  color: #71767b;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  background: #1e2125;
  border: 1px solid #2f3336;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.task-card:hover {
  border-color: #1d9bf0;
  transform: translateY(-2px);
}

.task-card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.task-card-desc {
  color: #71767b;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.priority-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-badge.low {
  background: #065f46;
  color: #6ee7b7;
}

.priority-badge.medium {
  background: #92400e;
  color: #fcd34d;
}

.priority-badge.high {
  background: #991b1b;
  color: #fca5a5;
}

.task-due {
  color: #71767b;
  font-size: 0.8rem;
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn.primary {
  background: #1d9bf0;
  color: white;
}

.btn.primary:hover {
  background: #1a8cd8;
}

.btn.danger {
  background: #dc2626;
  color: white;
}

.btn.danger:hover {
  background: #b91c1c;
}

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

.modal.active {
  display: flex;
}

.modal-content {
  background: #16181c;
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #71767b;
}

.close:hover {
  color: #e7e9ea;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #71767b;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #2f3336;
  border-radius: 8px;
  background: #1e2125;
  color: #e7e9ea;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1d9bf0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.task-updates {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.task-update-item {
  padding: 10px;
  background: #1e2125;
  border-radius: 8px;
  margin-bottom: 8px;
}

.task-update-time {
  font-size: 0.8rem;
  color: #71767b;
  margin-bottom: 4px;
}

.task-update-msg {
  color: #a1a5aa;
}

.loading {
  text-align: center;
  color: #71767b;
  padding: 40px;
}

.empty-state {
  text-align: center;
  color: #71767b;
  padding: 40px;
}
