/* Board-specific styles */

.board-main {
  padding: 2rem 0;
}

.auth-status {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.auth-status #user-email {
  font-size: 0.9rem;
  opacity: 0.9;
}

.btn-primary, .btn-secondary {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Login Container */
.login-container {
  max-width: 400px;
  margin: 3rem auto;
}

.login-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.login-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.error-message {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fee;
  color: var(--accent-color);
  border-radius: 6px;
  border: 1px solid #fcc;
}

/* Board Interface */
.board-interface {
  animation: fadeIn 0.5s ease-in;
}

.board-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.section-header h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.badge {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Chat Section */
.chat-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 70vh;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  padding: 1rem;
  border-radius: 8px;
  background: #f8f9fa;
  border-left: 3px solid var(--secondary-color);
}

.chat-message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.chat-message-author {
  font-weight: 600;
  color: var(--primary-color);
}

.chat-message-time {
  color: #999;
}

.chat-message-text {
  color: var(--text-color);
  line-height: 1.6;
}

.chat-input-container {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.record-toggle-container {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.record-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.record-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.record-toggle input[type="checkbox"]:checked + .toggle-slider {
  background: var(--accent-color);
}

.record-toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

.chat-message.off-the-record {
  background: #fff3cd;
  border-left-color: #ffc107;
  opacity: 0.9;
}

.chat-message.system-message {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left-color: #2196f3;
  border-left-width: 4px;
  font-weight: 500;
}

.chat-message.system-message .chat-message-text {
  line-height: 1.8;
}

.chat-message.system-message ol {
  margin: 0.75rem 0;
}

.chat-message.system-message li {
  margin: 0.5rem 0;
}

/* Guidelines Panel */
.guidelines-panel {
  background: #f8f9fa;
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  animation: slideDown 0.3s ease;
}

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

.guidelines-content h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.guidelines-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guideline-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--secondary-color);
}

.guideline-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.guideline-item p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.off-record-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
}

.chat-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
}

.chat-form button {
  padding: 0.75rem 1.5rem;
}

/* Voting Section */
.voting-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-height: 70vh;
  overflow-y: auto;
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.issue-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.issue-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.issue-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.issue-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.issue-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.issue-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.issue-status.closed {
  background: #f8d7da;
  color: #721c24;
}

.issue-status.resolved {
  background: #d1ecf1;
  color: #0c5460;
}

.vote-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.vote-summary-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.vote-counts {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.vote-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.vote-count.yes {
  color: #28a745;
}

.vote-count.no {
  color: var(--accent-color);
}

.vote-count.abstain {
  color: #6c757d;
}

.vote-directors {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.issue-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  color: var(--primary-color);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--accent-color);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.vote-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.vote-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vote-option:hover {
  border-color: var(--secondary-color);
  background: rgba(52, 152, 219, 0.05);
}

.vote-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: var(--secondary-color);
}

.vote-option input[type="radio"]:checked ~ .vote-option {
  border-color: var(--secondary-color);
  background: rgba(52, 152, 219, 0.1);
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-class-select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.member-class-select:focus {
  outline: none;
  border-color: var(--secondary-color);
}

/* Tabs */
.section-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Action Items */
.action-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-item-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.action-item-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.action-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.action-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.action-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.action-item-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.action-item-status.open {
  background: #d4edda;
  color: #155724;
}

.action-item-status.in_progress {
  background: #d1ecf1;
  color: #0c5460;
}

.action-item-status.completed {
  background: #d4edda;
  color: #155724;
}

.action-item-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.action-item-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.action-item-assigned {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.action-item-assigned strong {
  color: var(--primary-color);
}

.action-item-due-date {
  font-size: 0.85rem;
  color: #999;
}

.action-item-due-date.overdue {
  color: var(--accent-color);
  font-weight: 600;
}

.action-item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 968px) {
  .board-layout {
    grid-template-columns: 1fr;
  }

  .chat-section {
    height: 50vh;
  }

  .voting-section {
    max-height: none;
  }
}
