/* Temel stiller */
:root {
  --primary-color: #10b981;
  --primary-hover: #059669;
  --danger-color: #ef4444;
  --danger-hover: #dc2626;
  --background: #ffffff;
  --foreground: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f9fafb;
  color: var(--foreground);
  line-height: 1.5;
}

/* Düzen */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.25rem;
}

.logo-icon {
  color: var(--primary-color);
}

main {
  padding: 2rem 0;
}

/* Bileşenler */
.card {
  background-color: var(--background);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.inbox-actions {
  display: flex;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Form elemanları */
.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  padding-right: 4.5rem;
}

.badge {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ecfdf5;
  color: var(--primary-color);
  border: none;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  font-size: 0.875rem;
  min-width: 180px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.button-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.button-primary:hover {
  background-color: var(--primary-hover);
}

.button-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.button-outline:hover {
  background-color: #f9fafb;
}

.button-danger {
  background-color: var(--danger-color);
  color: white;
  border: none;
}

.button-danger:hover {
  background-color: var(--danger-hover);
}

.button-icon {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
}

.button-icon:hover {
  color: var(--foreground);
}

/* E-posta listesi */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.email-list {
  max-height: 400px;
  overflow-y: auto;
}

.email-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.email-item:hover {
  background-color: #f9fafb;
}

.email-item.unread {
  background-color: #f0fdf4;
}

.email-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--muted);
}

.email-content {
  flex: 1;
  min-width: 0;
}

.email-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.email-sender {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-time {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.email-subject {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  text-align: center;
}

.empty-state i {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.empty-state p {
  font-size: 0.875rem;
}

/* 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;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--background);
  border-radius: var(--radius);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

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

.modal-body {
  padding: 1.5rem;
}

.email-info {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.email-body {
  line-height: 1.6;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .input-group {
    flex-direction: column;
  }

  .inbox-header {
    flex-direction: column;
    gap: 1rem;
  }

  .inbox-actions {
    width: 100%;
  }

  .inbox-actions .button {
    flex: 1;
  }
}
