:root {
  --primary: #003de4;
  --accent: #0051ff;
  --text-dark: #2f3542;
  --bg-light: #f1f2f6;
  --white: #ffffff;
  --send-btn: #eb4d4b;
}

body {
  font-family: "Lato", sans-serif;
  margin: 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.main-header {
  background: linear-gradient(135deg, #0033ff 0%, #ffffff 100%);
  color: white;
  padding: 25px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo {
  margin: 0;
  font-size: 28px;
  letter-spacing: 1px;
  font-weight: 700;
}

.logo span {
  font-weight: 300;
  opacity: 0.9;
}

.page-title {
  margin: 50px 0 30px;
  font-weight: 400;
  font-size: 2rem;
  color: #1e3799;
}

.date-highlight {
  font-weight: 700;
  border-bottom: 3px solid #eb4d4b;
  padding-bottom: 2px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.textarea-container {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #dcdde1;
  transition: all 0.3s ease;
}

.textarea-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 61, 228, 0.15);
}

textarea {
  width: 100%;
  height: 350px;
  border: none;
  outline: none;
  font-family: "Lato", sans-serif;
  font-size: 1.2rem;
  color: #444;
  resize: none;
  padding: 10px 0;
  background: var(--white);
}

.textarea-footer {
  border-top: 1px solid #eee;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

.setting-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #777;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.toggle-btn {
  background: var(--white);
  border: 2px solid #dcdde1;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.toggle-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.toggle-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(74, 105, 189, 0.3);
}

.toggle-btn-audience {
  background: var(--white);
  border: 2px solid #dcdde1;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.toggle-btn-audience:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.toggle-btn-audience.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(74, 105, 189, 0.3);
}

.input-wrapper {
  background: var(--white);
  border: 2px solid #dcdde1;
  border-radius: 10px;
  padding: 12px 15px;
  transition: border-color 0.3s;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
}

.input-wrapper input {
  border: none;
  outline: none;
  width: 100%;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
}

/* Send Button Decor */
#send-btn {
  width: 100%;
  background: var(--send-btn);
  color: white;
  border: none;
  padding: 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 6px 15px rgba(235, 77, 75, 0.3);
  transition: all 0.3s ease;
}

#send-btn:hover {
  background-color: #cf3a38;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(235, 77, 75, 0.4);
}

@media (max-width: 850px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.success-tick svg {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 20px;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #7ac142;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #7ac142;
  stroke-width: 3;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
