.chat-input-container {
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  display: flex;
  justify-content: center;

  .input-wrapper {
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;

    &:focus-within {
      border-color: #3498db;
      box-shadow: 0 4px 12px rgba(52, 152, 219, 0.12);
    }

    textarea {
      width: 100%;
      border: none;
      outline: none;
      resize: none;
      font-size: 15px;
      font-family: inherit;
      color: #1f2937;
      background: transparent;
      min-height: 24px;
      max-height: 200px;
      line-height: 1.5;
      padding: 0;

      &::placeholder {
        color: #9ca3af;
      }

      &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }
    }

    .actions-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 4px;

      .attach-button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        background: transparent;
        border: none;
        color: #6b7280;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        transition: color 0.2s ease;

        &:hover {
          color: #3498db;
        }

        fa-icon {
          font-size: 16px;
        }

        span {
          @media (max-width: 480px) {
            display: none;
          }
        }
      }

      .right-actions {
        display: flex;
        align-items: center;
        gap: 8px;

        .voice-button {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 36px;
          height: 36px;
          background: transparent;
          border: none;
          color: #6b7280;
          cursor: pointer;
          border-radius: 8px;
          transition: all 0.2s ease;

          &:hover {
            background: #f3f4f6;
            color: #1f2937;
          }

          fa-icon {
            font-size: 18px;
          }
        }

        .send-button {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 36px;
          height: 36px;
          background: #f63e63;
          border: none;
          color: #ffffff;
          cursor: pointer;
          border-radius: 8px;
          transition: all 0.2s ease;

          &:hover:not(:disabled) {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
          }

          &:active:not(:disabled) {
            transform: scale(0.98);
          }

          &:disabled {
            background: #e5e7eb;
            cursor: not-allowed;
            opacity: 0.6;

            fa-icon {
              color: #9ca3af;
            }
          }

          fa-icon {
            font-size: 16px;
          }
        }
      }
    }
  }
}

// Responsive
@media (max-width: 768px) {
  .chat-input-container {
    padding: 12px 16px;

    .input-wrapper {
      padding: 12px 16px;
      border-radius: 14px;

      textarea {
        font-size: 14px;
      }

      .actions-row {
        .attach-button {
          font-size: 12px;

          fa-icon {
            font-size: 14px;
          }
        }

        .right-actions {
          gap: 6px;

          .voice-button,
          .send-button {
            width: 32px;
            height: 32px;

            fa-icon {
              font-size: 15px;
            }
          }
        }
      }
    }
  }
}

// Auto-expand textarea
@media (min-width: 769px) {
  .chat-input-container .input-wrapper textarea {
    overflow-y: auto;
  }
}
