* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 400px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f5f5f5;
}

/* Masaüstü: içerik tam ekran değil, sabit 968px ve ortada */
@media (min-width: 968px) {
  body {
    max-width: 968px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* index.html: gönderen hat + alıcı blokları */
.index-panel {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: #fafafa;
}

.index-panel--sender {
  background: linear-gradient(165deg, #f6fffb 0%, #fafafa 55%);
  border-color: #d8eee4;
}

.index-panel--recipients {
  background: #fff;
  border-color: #e6e6e6;
}

.index-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.index-panel__title--solo {
  margin-bottom: 0.35rem;
}

.index-panel__hint {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #5c5c5c;
}

.index-panel__hint code {
  font-size: 0.78em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.index-panel__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.index-panel__select--full {
  width: 100%;
}

.index-panel__select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid #c5d5ce;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 0;
}

.index-panel__select:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.index-panel__select:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  background: #f0f0f0;
}

.index-phone-list {
  margin-bottom: 0.5rem;
}

.index-panel__btn-add {
  margin-bottom: 0 !important;
}

.index-add-sender {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #c5d5ce;
}

.index-add-sender__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.index-add-sender__hint {
  margin-bottom: 0.65rem !important;
}

.index-add-sender__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.index-add-sender__row .index-add-sender__input {
  flex: 1 1 120px;
  margin-bottom: 0;
  min-width: 0;
}

.index-add-sender__btn {
  width: auto !important;
  flex: 0 0 auto;
  min-width: 5.5rem;
  padding: 0.65rem 1rem !important;
  background: #128c7e !important;
  font-size: 0.9rem !important;
}

.index-add-sender__btn:hover {
  background: #0f7a6e !important;
}

.index-add-sender__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.index-add-sender__msg {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  min-height: 1.2em;
}

.index-add-sender__msg--ok {
  color: #155724;
}

.index-add-sender__msg--error {
  color: #721c24;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.phone-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.phone-row input {
  margin-bottom: 0;
}

.phone-row .country-code-input {
  width: 70px;
  flex-shrink: 0;
}

.phone-row .phone-input {
  flex: 1;
}

.phone-row .btn-remove {
  width: 36px;
  height: 36px;
  padding: 0;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.phone-row .btn-remove:hover {
  background: #c82333;
}

.btn-add {
  background: #6c757d !important;
  margin-bottom: 1rem !important;
}

.btn-add:hover {
  background: #5a6268 !important;
}

button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  background: #20bd5a;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.success {
  background: #d4edda;
  color: #155724;
}

.error {
  background: #f8d7da;
  color: #721c24;
}

.nav a {
  color: #25D366;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

/* Ana sayfa ve ortak üst menü */
.app-nav {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.app-nav__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.app-nav__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
}

.app-nav__current {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b5e20;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #a5d6a7;
}

.app-nav__row a {
  color: #128c7e;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.2rem;
}

.app-nav__row a:hover {
  color: #075e54;
  text-decoration: underline;
}

.app-nav__sep {
  color: #cfd8dc;
  user-select: none;
  font-weight: 300;
  margin: 0 0.1rem;
}

.app-nav__tools {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #e0e0e0;
}

.app-nav__tools a {
  font-size: 0.78rem;
  color: #78909c;
  text-decoration: none;
}

.app-nav__tools a:hover {
  color: #546e7a;
  text-decoration: underline;
}
