.cod-dashboard {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cod-dashboard h2 {
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.back-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.back-button:hover {
  background: #e0e0e0;
}

.order-info {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.order-info h3 {
  margin-top: 0;
  color: #0073aa;
}

.order-meta p {
  margin: 8px 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.status-badge.pending {
  background: #fff0c2;
  color: #755d00;
}

.status-badge.in-progress {
  background: #c2e7ff;
  color: #005a87;
}

.status-badge.completed {
  background: #c9f7c2;
  color: #1c6b15;
}

.status-badge.revision {
  background: #ffd9c2;
  color: #8c3c00;
}

.cod-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.cod-orders-table th,
.cod-orders-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cod-orders-table th {
  background: #f7f7f7;
  font-weight: 600;
}

.cod-orders-table tr:hover {
  background: #f9f9f9;
}

.button {
  display: inline-block;
  padding: 8px 16px;
  background: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  margin-right: 5px;
}

.button:hover {
  background: #005a87;
}

.order-messages {
  margin-top: 30px;
}

.messages-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.message {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
}

.own-message {
  background: #e1f5fe;
  margin-left: 20%;
}

.other-message {
  background: #f5f5f5;
  margin-right: 20%;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12px;
  color: #666;
}

.message-content {
  line-height: 1.5;
}

.new-message textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  min-height: 100px;
}

.new-message button {
  margin-top: 10px;
}