/* Simple styles for meeting minutes app */

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

header {
  margin-bottom: 20px;
}

.title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 10px 0;
}

.meta {
  margin: 20px 0;
}

.minutes {
  margin: 30px 0;
}

/* Forms */
.input-field {
  border: none;
  background: transparent;
  border-bottom: 1px dashed #ccc;
  padding: 4px 8px;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}

.input-field:focus {
  border-bottom-color: #007acc;
  background: #f9f9f9;
  outline: none;
}

.title-input {
  font-size: 1.5em;
  font-weight: bold;
  min-width: 200px;
}

.textarea-field {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  min-height: 60px;
  resize: vertical;
}

.textarea-field:focus {
  border-color: #007acc;
  outline: 2px solid #007acc;
  outline-offset: 1px;
}

input[type="datetime-local"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
}

input[type="datetime-local"]:focus {
  outline: 2px solid #007acc;
  outline-offset: 1px;
  border-color: #007acc;
}

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

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

.table th {
  background: #f5f5f5;
  font-weight: bold;
}

.minutes .table thead th {
  background: #333;
  color: white;
}

.minutes .table tbody td {
  vertical-align: top;
  padding: 10px 8px;
}

/* Column widths */
.topic { width: 20%; }
.type { width: 15%; }
.note { width: 40%; }
.owner { width: 10%; }
.due { width: 10%; }
.actions { width: 5%; }

/* Buttons */
button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.new-form-btn {
  background: #dc3545;
  color: white;
}

.new-form-btn:hover {
  background: #c82333;
}

.import-markdown-btn,
.copy-markdown-btn {
  background: #007acc;
  color: white;
}

.import-markdown-btn:hover,
.copy-markdown-btn:hover {
  background: #0056b3;
}

.add-row-btn {
  background: #28a745;
  color: white;
  margin-top: 10px;
}

.add-row-btn:hover {
  background: #218838;
}

/* Toggle buttons */
.toggleMetaFields {
  margin: 10px 0;
}

.toggleMetaFields dd {
  display: inline-block;
  margin: 0 10px 0 0;
  padding: 5px 10px;
  background: #f0f0f0;
  border-radius: 3px;
  cursor: pointer;
}

.toggleMetaFields dd:hover {
  background: #e0e0e0;
}

/* Dialogs */
dialog {
  border: none;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90vw;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.dialog-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

#markdown-input {
  width: 100%;
  min-height: 300px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  resize: vertical;
}

/* Meeting Ticker */
.meeting-ticker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticker-inputs {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 12px;
  font-weight: 500;
  color: #495057;
  margin: 0;
}

.ticker-input {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.ticker-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ticker-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

.ticker-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ticker-start {
  background: #28a745;
  color: white;
}

.ticker-stop {
  background: #dc3545;
  color: white;
}

.ticker-reset {
  background: #6c757d;
  color: white;
}

.ticker-display {
  display: flex;
  justify-content: flex-end;
}

.cost-info {
  text-align: right;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #dc3545;
  min-width: 120px;
}

#cost-display {
  font-size: 1.5em;
  font-weight: bold;
  color: #dc3545;
}

#duration-display {
  font-size: 0.85em;
  color: #6c757d;
  margin-top: 2px;
}

/* Utilities */
.project-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

[data-remove] {
  cursor: pointer;
  color: #ff0000;
  font-size: 1.2em;
  padding: 2px 5px;
}

[data-remove]:hover {
  background: #ffebee;
  border-radius: 2px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.site-footer a {
  color: #007acc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  
  .minutes .table {
    font-size: 0.9em;
  }
}
