.header {
    grid-area: header;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    padding: 40px 20px !important;
    text-align: center;
    color: #ffffff !important;
    border-radius: 8px;
}

.header h1 {
    font-size: 2.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px;
	color:white!important;
}

.header p {
    font-size: 1rem !important;
    opacity: 0.9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px !important;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: 
      "header header header"
      "input action output";
  gap: 24px;
}

.input-section {
  grid-area: input;
}

.output-section {
  grid-area: output;
}

.toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 8px 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    font-size: 0.9rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background-color: #f5f5f5 !important;
    border-color: #cccccc;
}

.tool-btn:active {
    transform: scale(0.97) !important;
}

textarea {
  width: 100%;
  min-height: 250px;
  padding: 16px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  background-color: #fafafa !important;
  color: #333333 !important;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

textarea:focus {
  outline: none !important;
  border-color: #FB0E76 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(251, 14, 118, 0.1) !important;
}

.convert-section {
  grid-area: action;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
  max-width: 180px;
  text-align: center;
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555555;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FB0E76;
}

.convert-btn {
    padding: 12px 40px !important;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(251, 14, 118, 0.3);
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 14, 118, 0.4);
}

.convert-btn:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas: 
        "header"
        "input"
        "action"
        "output";
  }
  
  .convert-section {
    max-width: 100%;
    flex-direction: row;
    margin: 10px 0;
  }
  
  .checkbox-label {
    flex-direction: row;
  }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.8rem !important;
    }

    .header p {
        font-size: 0.9rem;
    }

    .container {
        padding: 0px !important;
    }

    .toolbar {
        gap: 6px;
    }

    .tool-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    textarea {
        min-height: 180px;
        padding: 12px;
    }

    .convert-section {
    flex-direction: column;
    gap: 15px;
  }

  .convert-btn {
    width: 100%;
  }
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(150%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(0);
}